

C compiler: gcc.exe (mine shows x86_64-w64-mingw32-gcc.exe).You'll want some variation of the following: Now, in that same Toolchain executables screen, go through the individual Program Files boxes one by one and verify that the filenames shown in each are correct. If you look into the folder the textbox shows and there isn't a bin subfolder there, you probably have the wrong installation folder specified. Pay careful attention to the warning note Code::Blocks shows: this folder must have a bin subfolder which will contain all the relevant GCC executables. Your path will vary, and this is completely fine just make sure the path in the textbox is the same as the path you installed to. Make sure the Compiler's installation directory textbox matches the folder you installed GCC into. Go into the Settings menu, then select Global compiler settings in the sidebar, and select the Toolchain executables tab. You don't need to create a project or write any code yet we're just here to set stuff up or double-check your setup, depending on how you opted to install GCC. Once your setup is done, go ahead and launch Code::Blocks. The setup for this might be a bit more complex than you'd care for, so you can go for the 32-bit version or just grab a preconfigured Code::Blocks/TDM-GCC setup here.

There are lots and lots of different builds personally, I use the 64-bit build of TDM-GCC. I'm assuming you're on Windows, based on your comments about Visual Studio if you're on a different platform, the steps for setting up GCC should be similar but not identical.įirst you'll need to download GCC. I'm guessing you've installed Code::Blocks but not installed or set up GCC yet.
