

Then lower in the window there are many fields, looking something like this : Take a look at the settings in C::B - Go to Settings-> Compiler-> Toolchain executables.įirst of all, at the top of the window, you must have GNU GCC COMPILER as the selected compiler. I will assume you have set the system path for GCC correctly after installing it. Your compiler setup in Code::Blocks is incorrect If your C::B installation includes a compiler or, as understood from your question, you have installed a compiler separately - skip to next steps.Ģ. Actually I use C::B on Windows and installing a copy there needs some care to choose the one with preinstalled MinGW compiler, if that is the one the user intends to use. Here are the current Code::Blocks binaries that you can download for your system. You installed Code::Blocks version without the compiler. Terdon gave good suggestions on improving the question. Since you haven't included much information on it I will have to guess on what's most likely your case, considering the most common ones among beginners. Please pay attention to the default names: you might need to change them accordingly ( only mingw-g++.There could be several reasons behind the issue you are having. Go to Settings tab and then Toolchain executables. After installing MinGW, you need to change the compiler settings of Code Block so that it can find the compiler in the correct location. Therefore, I downloaded and installed MinGW. One must install it to be able to compile. Then, I figured out that Code Blocks does not contain any C/C++ compiler. CodeBlock gave an error when I tried to build a simple C++ code: failed to find GNU GCC compiler. In fact, I was using a brand new computer lacking any C/C++ compiler. However, I confronted a problem: it could not find the default compiler, which ise GNU GCC compliler.

I have downloaded and installed Code Blocks.

They recommend to use CodeBlocks IDE for C++. I was practicing with SoloLearn, which seems promising and practical in sharpening programming skills.
