You can now use the new codeblocks version 13.12(that i didn't know came out at the date of writing this little tutorial). For those that for some unknown reason still want to use the old version(12.11) you can use this tutorial to be able to make wxWidgets 3.0 projects. In this little tutorial i will show you how to change the default wxwidgets template from codeblocks to be able to create wxwidgets 3.0 projects and use the 3.0 version of the library.
First open Codeblocks and chose to create a new project.
Then right click on the wxwidgets template and pick edit this script, like in the image below.
![]() |
Edit wxWidgets Script |
Next a new window will open in your Codeblocks editor named wizard.script like in the image below.
![]() |
wxWidgets script template editor |
Next you will have to find and edit a few lines of code like so:
and you can replace it with something like this
This just replaces the intro message.
Next is this:
and replace it with this:
This will change the main window where you can chose what type of wxwidgets project you wish to create.
Next is this:
with this:
and this:
with this:
Next you need to find this line:
and change it to this:
This will hold the sufix for the library versions.
And that is pretty much it.
Now, just hit ctrl+s to save the modifications done to the file and close it.
You can now try and create your project with wxWidgets 3.0 now. the template should look something like this(red) now.
![]() |
Edited project template |
The red color indicates that the template has been modified.
When you select the project, the new windows should look something like this:
![]() |
Edited wxWidgets version selector |
Home you find the tutorial helpful. See you at our next tutorial.