On Thu, 22 Feb 2007 11:22:12 +0100
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> wrote:

> >>>>> "John" == John Coppens <[EMAIL PROTECTED]> writes:
> 
> John> I get similar warnings for most files compiled: g++
> John> -DHAVE_CONFIG_H -I. -I. -I../../src -Winvalid-pch
> John> --include=./pch.h -I./.. -I../../boost -I/usr/X11R6/include
> John> -fno-exceptions -O2 -MT kill.lo -MD -MP -MF .deps/kill.Tpo -c
> John> kill.C -fPIC -DPIC -o .libs/kill.o cc1plus: warning:
> John> ././pch.h.gch: created and used with different settings of -fpic
> 
> John> I'm using gcc-4.1.1, maybe that's the problem? Should I worry? I
> John> couldn't find a description of the error on google.
> 
> Does this still happen if you delete those *.gch files and let gcc
> recreate them?

This happened after a clean install of the 1.4.4 source distro. The .pch
appear not to be in the distro, so yes, this happens always (I compiled
only once). Just in case, I tried to delete them all and got the same
problem.

This happens quite at the beginning of the compilation process:

make  all-am
make[5]: Entering directory
`/usr/local/src/office/lyx-1.4.4/boost/libs/filesystem/src'
if /bin/sh ../../../../libtool --tag=CXX --mode=compile g++
-DHAVE_CONFIG_H -I. -I. -I../../../../src  -Winvalid-pch
--include=./pch.h -DBOOST_USER_CONFIG="<config.h>" -I../../../../boost
-I/usr/X11R6/include -fno-exceptions -O2 -MT convenience.lo -MD -MP -MF
".deps/convenience.Tpo" -c -o convenience.lo convenience.cpp; \ 
then mv -f ".deps/convenience.Tpo" ".deps/convenience.Plo"; 
else rm -f ".deps/convenience.Tpo"; exit 1; fi g++ -DHAVE_CONFIG_H -I. -I.
-I../../../../src -Winvalid-pch --include=./pch.h
"-DBOOST_USER_CONFIG=<config.h>" -I../../../../boost -I/usr/X11R6/include
-fno-exceptions -O2 -MT convenience.lo -MD -MP -MF .deps/convenience.Tpo
-c convenience.cpp  -fPIC -DPIC -o .libs/convenience.o cc1plus:
warning: ././pch.h.gch: created and used with different settings of -fpic

(this is the first of the warnings)

I'm no C++ programmer, so I fear I'm not much help here.

John

Reply via email to