Common Code::Blocks Set Up Error

I have just installed Code::Blocks 10.05 and I had some difficulties getting source code (like HelloWorld) to compile.
I encountered the following error:

"xxx - Debug" uses an invalid compiler. Probably the toolchain path within the compiler options is not setup correctly?! Skipping...
Nothing to be done.

Sure, you can find the solution by searching forums and wading through post after post where idiots (who probably don’t know how to solve the problem since it worked right the first time for them by chance) insult the poor sap who is merely asking for help.
(can you tell that I spent too much time wading through that nonsense?)

Here is what worked for me.

First, remember that Code::Blocks is an IDE—not a compiler. You either have to have a compiler installed, or run the setup files that come with the MinGW compiler. For me, this was: codeblocks-10.05mingw-setup.exe

Second, as the message says, you need to check the toolchain path.
Go to:
1. Click on the Menu Item “Settings”> “Compiler and debugger…”
2. Click on the “Toolchain executables” tab
3. The “Compiler’s installation directory” (marked in blue) is the directory you are interested in.
4. Simply click on “Auto Detect” to the right.
You should now have the compiler set up properly.
Go back to your project and click on build and run.

Now you can actually start programming!

Last, consider those jerks on the forums who think that programming consists of Googling or searching for answers on how to get someone else’s quirky IDE program, compiler, or operating system to do what it is supposed to do and who have nothing better to do than insult people who are having problems. These are the guys who have absolutely no idea what it means to program!
(Before anyone who was insulted by my comments above considers flaming me with further insults, I should tell you that I have failed people like that in my graduate level classes, and your time would be best served by just getting back to work!)

Be Sociable, Share!

Leave a Reply

Your email address will not be published. Required fields are marked *