Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: tiwag on December 13, 2006, 05:45:02 pm

Title: linux build using CodeBlocks-unix.cbp project file
Post by: tiwag on December 13, 2006, 05:45:02 pm
has anyone had problems with a recent svn revision to build CB using the CodeBlocks-unix.cbp project file ?

when i try to build svn rev 3374 with my last working version CB-svn 3315, i get the following error

-------------- Build: src in Code::Blocks - Unix ---------------
g++ -Wall -g `wx-config --cflags` -fmessage-length=0 -fexceptions -Winvalid-pch -fPIC -DcbDEBUG -DCB_PRECOMP -DENABLE_BINRELOC  -Isdk -Isrc/wxAUI -Isdk/wxFlatNotebook/include -Isdk/scripting/include -Isdk/scripting/sqplus -Isdk/wxscintilla/include -I/usr/include  -c src/app.cpp -o .objs/src/app.o
src/app.cpp:1: fatal error: had to relocate PCH
compilation terminated.


runnning on ubuntu 6.10, using g++ 4.1.1

any ideas ?
Title: Re: linux build using CodeBlocks-unix.cbp project file
Post by: mandrav on December 13, 2006, 05:48:18 pm
Maybe you have built it before using autotools? The PCH generated by autotools is not compatible with the .cbp build. Remove the sdk.h.gch manually and see if this fixes it.
And yes, I build it every day with the .cbp in linux.
Title: Re: linux build using CodeBlocks-unix.cbp project file
Post by: tiwag on December 13, 2006, 05:59:19 pm
... Remove the sdk.h.gch manually and see if this fixes it.

yes i did that, but it didn't fix it,

btw.
i discovered, the following points
1.) sdk_precomp.h isn't set to precompiled state in the CodeBlocks-unix.cbp project file.
2.) the update script doesn't strip the files in the output folder (strip commands remarked)
are they intended or by mistake ?

thx tiwag