

A project contains related files such as source codes, header files, and relevant resources. Other than the few-line toy programs, you shall create a project for each of your application. The drawback is you cannot debug program without creating a project.


Provide the full-path name of " gdb.exe", for example, "Ĭ:\Program Files (x86)\CodeBlocks\MinGW\bin\gdb.exe". Goto "Settings" menu ⇒ "Debugger." ⇒Įxpand "GDB/CDB debugger" ⇒ Select "Default" ⇒ In "Executable path", Set it to " C:\Program Files (x86)\CodeBlocks\MinGW". It shall be set to the "MinGW" sub-directory of the CodeBlocks installation directory,įor example, if CodeBlocks is installed in " C:\Program Files (x86)\CodeBlocks", "Toolchain Executables" ⇒ Check the "Compiler's Installation Directory". In "Selected Compiler", choose "GNU GCC Compiler" ⇒ Select tab (for CodeBlocks 20.03 for Windows) Goto "Settings" menu ⇒ "Compiler." ⇒ Verify the Compiler's and Debugger's Path:
