Mingw32-make -f makefile.gcc SHARED=0 BUILD=debug MONOLITHIC=0 Again, in my case: C:\wxWidgets-3.1.3\build\mswĮxecute the following commands, in order: Built by MinGW-W64 project)Ĭhange directory (cd) to \build\msw\ inside the wxWidgets directory. The last line should be gcc version 8.1.0 (x86_64_posix-she-rev0. For my installation this is C:\Program Files\CodeBlocks\MinGW\bin\gdb.exe Click on Default and enter the path to the MinGW debugger. If you want to be able to debug go to Settings -> Debugger. In CB go to Settings -> Compiler -> Linker Settings -> Add. Put them here in your installation: C:\Program Files\CodeBlocks\MinGW\libĪdd to linker settings. There are, apparently, two library files missing from this installation:ĭownload: Release: mingw64runtime-v7-git20191109-gcc9-tdm64-1.zip Entries should match the location of wxWidgets on your computer. Create a new global variable named wx and define the base, include and lib fields. Run Code::Blocks and go to Settings -> Global Variables.
#CODEBLOCKS COMPILER NOT WORKING HOW TO#
If you don't know how to add MinGW to the Windows PATH environment variable: If you installed in the default location, the path to add is: C:\Program Files\CodeBlocks\MinGW\bin Add the path for the MinGW compiler to the Windows PATH environment variable. Run the Code Blocks installer, accept defaults for everything. WxWidgets: Release: Windows ZIP or Windows 7Z For others like me, this might be useful.Ĭode Blocks: Release: I had no experience with wxWidgets, but quite a lot with Code::Blocks. Steps to get a working installation of Code::Blocks 20.03 w/ MinGW 8.1.0 and wxWidgets 3.1.3