Hello oliver,
I always get the same problem, so I gave up and now I'm going to work with makefiles...
To compile wxWidgets, I've used MSYS and:
./configure --prefix=/c/wx --disable-debug --enable-shared --disable-unicode
make
make install
And then:
main: main.o
g++ -o main.exe frmMain.o main.o `/c/wx/bin/wx-config --libs`
main.o: main.h main.cpp frmMain.o
g++ -c main.h main.cpp `/c/wx/bin/wx-config --cxxflags`
frmMain.o: frmMain.h frmMain.cpp
g++ -c frmMain.h frmMain.cpp `/c/wx/bin/wx-config --cxxflags`
For me, wxWidgets + C::B doesn't exist, C::B doesn't support wx...