Paste full build log here.
Paste the contents of codeblocks.RPT here (if Code::Blocks crashed).
Errr.... do I understand the correctly that I HAVE to use C++ and I can't use GCC ?
A very very puzzled,
Tim
change test.cpp to test.c
This should lead you in the right direction:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F (http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(errors)#Q:_How_do_I_troubleshoot_a_compiler_problem.3F)
especially the last line.
Remember the file extension matters: *.c is compiled as C file, *.cpp is compiled as C++ file. Read more (http://www.parashift.com/c++-faq-lite/mixing-c-and-cpp.html)
(still find it weird that it only worked on G++ and GCC was ignored)
(still find it weird that it only worked on G++ and GCC was ignored)
gcc is the "GNU Compiler Collection". g++ is a part of gcc. The "gcc" executable is the c compiler, the g++ is the c++-compiler.
If your file ends with cpp then you use the c++ compiler, so you need the g++ executable.
If your file ends with c then you are using the c compiler and you need the gcc executable.
greetings
can you cut and paste into it ok ?
can you cut and paste into it ok ?
Can't you c&p in your Editor, or only in the log window? Does it work with right-click -> Edit -> cut ?
In the log window ctrl+c isn't working (as i remember) but in the editor it should work. If not, you may have trouble with the short-cuts. you can search the forum to resolve the error, i think this was reported many times...
greetings