I tried to build in linux one application, which i made first only in windows..... it is in wxWidgets.... in windows - i added all flags, directories (includes etc...) directly into target options.... but in linux - it is a wx-config script, so - i created a default wxWidgets application by CodeBlocks wizard (in Ubuntu linux), looked project and targets options and tryed to make same target for my application - i deleted all flags (except -Winvalid-pch -include wx_pch.h), directories, defines (except USE_PCH)... added calling wx-config.... but if i try to build this - it calls g++ so:
g++ `wx-config --cflags` -Winvalid-pch -include wx_pch.h -DUSE_PCH -I./build/linux/objs -I- -I./build/linux/objs -I. -I/usr/include -c MhbFile.cpp -o ./build/linux/objs/MhbFile.o
cc1plus: note: obsolete option -I- used, please use -iquote instead
In file included from <command line>:1:
./wx_pch.h:9:23: error: wx/wxprec.h: No such file or directory
So - g++ options are : `wx-config --cflags` -Winvalid-pch -include wx_pch.h -DUSE_PCH -I./build/linux/objs -I- -I./build/linux/objs -I. -I/usr/include
i can't understand - where from are this "-I-", "-I.", "-I./build/linux/objs" (twice! :shock:)
if i delete this strange things and call (from console) this:
g++ `wx-config --cflags` -Winvalid-pch -include wx_pch.h -DUSE_PCH -I/usr/include -c MhbFile.cpp -o ./build/linux/objs/MhbFile.o
- it works fine....
For default wxWidgets application - it is no such problems...
Attached my *.cbp file.
I use Ubuntu 6.06 and CodeBlocks nightly from 9 October 2006.
This *.cbp file was first created by CodeBlocks 1.0 RC2, then i used nightly builds - may be something corrupted in *.cbp?
[attachment deleted by admin]