Hello, I just installed Code Blocks via yum on Fedora Core 8. I tried compiling a simple Hello World program, and I get the following error:
'"Test - Debug" uses an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]. Skipping...'
After a bit of research, I found that inside the project files XML, the compiler is being set to "gcc", which is the C compiler. I need this to be g++. However, according to the compiler settings window (toolchain executable tab), the C++ compiler is set to g++.
So what the problem seems to be is that Code Blocks thinks that my hello world project is a C program. And try as I might, I can find no project setting (or build target setting, for that matter) which flags the project as a C++ program, or tells it to use a C++ compiler. I suppose a workaround would involve manually editing the project file and replacing all occurances of 'gcc' with 'g++', but I would really rather avoid editing automatically generated files.
Any suggestions on how to fix this?