The problem is that you adding pre-processors manually rather than using the very much convenient wx-config tool.
instead of adding all the macros/switches, you can simply do this:
//to compile a simple hello world app on linux
g++ -c main.cpp -o HelloWorld `wx-config --libs --cflags`
The same can be used within CB, instead of hard coding all the macors/flags, replace it with:
and in the linker:
Using the above method will work both on windows & linux & mac (you can get wx-config for windows from here:
http://wx-config-win.googlecode.com/svn/binary/wx-config.exe (http://wx-config-win.googlecode.com/svn/binary/wx-config.exe))
This is how I do it (different IDE same principle)
Eran