

Check the boxes as shown in the screenshot to create the debug files. Uninstall Codeblocks and then first install MinGW and then install Codeblocks.Step 4: Make sure that the selected compiler is the one we just installed. Note: If you encountered problems running the debugger with CodeBlocks, do a clean installation. In Executable, the path should be C:\Program Files\codeblocks\MinGW\bin\gdb.exe or C:\MinGW\bin\gdb.exe if you have installed MinGW compiler before installing Codeblocks. Similarly, for debugger path: Settings > Debugger > GDB/CDB debugger > Default.Now select the “Toolchain Executables” tab from the below tabs and check the Compiler’s Installation Directory is set to “ C:\Program Files\codeblocks\MinGW. In the selected compiler, by default, it shows GNU GCC Compiler. Go to menu options and click on Settings > Compiler.We need to verify the Compiler and Debugger path (this step is optional). Now we have installed Codeblocks on windows.Click YES, and then it shows the compiler Codeblocks detected. Wait for a minute for installation to complete.


This tutorial explains how to install Codeblocks on your local environment or PC with Windows, Mac, or on Linux.ĬodeBlocks is a cross-platform, open-source, free IDE that supports GCC, Visual C++, and Clang compilers.
