User forums > Using Code::Blocks
Some C::B Suggestions...
takeshimiya:
--- Quote from: mispunt on November 17, 2006, 11:25:45 am ---
--- Quote from: takeshi miya on November 16, 2006, 05:29:28 am ---
--- Quote from: Shakes on November 16, 2006, 02:11:30 am ---All valid points. But one has to point out, its already been done despite what seems impossible.
--- End quote ---
There's always CINT, even trough it covers 95% of ANSI C and 85% of C++, it will be nice to have a plugin for it. :)
--- End quote ---
There is one problem, it doesn't seems to work with MinGW :? Or I am doeing something wrong...
--- End quote ---
Well you must be doing something wrong, it does works with MinGW. :P
For compiling it, just open msys and do a ./configure --arch=mingw && make it works for me.
You might need to remove (or compile) readline and dl from linking libs if you don't have them.
Don't fear that is not portable, because it is, the list of OS supported is: HP-UX, Linux, SunOS, Solaris, AIX, Alpha-OSF, IRIX, FreeBSD, NetBSD, NEC EWS4800, NewsOS, BeBox, Windows-9x, Windows-XP, MS-DOS, MacOS, MacOS X, VMS, NextStep, Convex, QNX, ...
and of compilers: GCC, MinGW, Cygwin, Visual C++ 4.0 to Visual C++ 2005, Borland Builder, Borland 5.5, DJGPP, Intel, Symantec, ...
David Perfors:
I didn't compile it myself, because I don't have msys running :P
takeshimiya:
--- Quote from: mispunt on November 17, 2006, 02:57:48 pm ---I didn't compile it myself, because I don't have msys running :P
--- End quote ---
Hehe, well you can use the precompiled exe, but if you read the README.txt:
"With the binary distribution, you can only use cint C++ interpreter.
In order to use makecint, you must compile cint from source."
Just in case, cint.txt:
NAME
cint - C/C++ interpreter
DESCRIPTION
"cint" is a C/C++ interpreter. About 95% of ANSI C and 90% of C++ features are covered.
(Data abstraction, class inheritance, virtual function, function and operator over-loading,
default parameter, template, etc...). Cint has source code debugger for interpreted
source code and it has sufficient capability for debugging a C++ script.
CINT AND MAKECINT
Cint can be used just as it is, but it is recommended to use makecint.
Makecint can encapsulate native C/C++ objects into Cint as precompiled libraries.
User defined precompiled objects can be accessed from the interpreter and a user
application can invoke C/C++ interpreter as interactive interface. It provides seamless
compiler/interpreter scripting environment. Precompiled libraries can be dynamically
loaded/unloaded if they are configured as Dynamic Link Library (DLL).
David Perfors:
I only tried to do a sample: cint HelloWorld.c But even that didn't work :P But I will try to compile it if I find/make some time...
takeshimiya:
--- Quote from: mispunt on November 17, 2006, 03:34:44 pm ---I only tried to do a sample: cint HelloWorld.c But even that didn't work :P But I will try to compile it if I find/make some time...
--- End quote ---
I guess you did get a message like this:
cint HelloWorld.c
Error: cannot open file "stdio.h" FILE:HelloWorld.c LINE:9
If you read the page, for the pre-compiled exe it says "download the source package too".
So it's easy, just uncompress both in the same folder and it will work:
cint HelloWorld.c
Hellow World
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version