Code::Blocks

From WxWiki

Jump to: navigation, search

[edit] Code::Blocks 8.02

This one is pretty simple and worked almost out of the box assuming that you already have set up wxWidgets and confirmed its function by typing wx-config --libs in a terminal. If it lists its libraries its working, if its spitting an error it, obviously, is not.


Create a new project, choose wxWidgets project.

Then go to Project -> Build options and replace whatever the wizard generated in both, Debug and Release -> Compiler settings -> Other options with

`wx-config --cxxflags`

and Debug/Release -> Linker settings -> Other linker options with

`wx-config --libs`

You can also set your global settings to use this. You can do this by going to Settings -> Compiler and Debugger and doing the configuration there. This way you don't have to reconfigure every single project you do.

[edit] Code::Blocks SVN Version

This one is pretty simple and worked almost out of the box assuming that you already have set up wxWidgets and confirmed its function by typing wx-config --libs in a terminal. If it lists its libraries its working, if its spitting an error it, obviously, is not.


Create a new project, choose wxWidgets project.

Then go to Project -> Build options and replace whatever the wizard generated in both, Debug and Release -> Compiler settings -> Other options with

`wx-config --cflags`

and Debug/Release -> Linker settings -> Other linker options with

`wx-config --libs`

You should be all set now :)

Personal tools