As of now, the codeblocks wizard for wxWidgets projects does not support wxWidgets 3.1. This means that when you try to create a new wxWidgets project using 3.1, you’ll eventually get a warning that a matching debug/release configuration could not be found. This has come up in a few threads, so I thought it might be a good idea to have 1 thread to discuss this issue.

There are at least 2 possible fixes. First you can ignore the warning and then make a few changes manually to make the project work. Alternately I have tried to modify codeblocks’ wizard script to add support for 3.1. I’ll cover both of these in the next posts.

The script tries to add 3.1 to the wizard. I have only tested it on windows and only with TDM-GCC and Visual C++. With TDM-GCC, I have tested it with multlib static release, multlib static debug, multlib shared release, and multlib shared debug. With Visual C++, I have tested it with monolothic static release, monolothic shared release, monolothic shared debug.

To use it,

open the new project dialog (File->New->Project…)

right click on the wxWidgets icon

select “Edit this script”

a new tab will open with the contents of the default wizard script.

Replace the contents of that tab with the script below

save the file

replace.png (11.18 KiB) Viewed 5983 times

Important:
When the codeblocks developers add support for 3.1, their wizard will be better than mine. So the next time you update codeblocks, be sure to remove my script: