Boost logo

Boost-Build :

From: Juergen Hunold (hunold_at_[hidden])
Date: 2005-11-21 14:47:26


Hi Reece !

On Sunday 20 November 2005 21:50, Reece Dunn wrote:
> Juergen Hunold wrote:

> > Okay, please find my first try at pch support for gcc attached.
> > It creates the pch file but somehow failes to add "-include
> > $(PCH_FILE)" to the command line. Any Ideas ?

And now a current version attached.
Remarks:
gcc does not support an "implementation" (read .cpp)m, it requires only
a .h file to precompile. This should somehow be enforced or commented.
I think that the binding on PCH_SOURCE is wrong for gcc ?

> Note, I don't currently have GCC installed. However, this is what I
> get for stdafx.pch...

> -x c++-header -O3 -finline-functions -Wno-inline -Wall
> -DNDEBUG -I"f:\devel\drop\boost" -c -o
> "..\..\..\..\build\test\pch\microsoft\gcc\release\stdafx.o"
> "..\..\..\..\build\test\pch\microsoft\gcc\release\stdafx.pch"
> "..\microsoft\stdafx.h"

Well, take a look at compile.txt and this works and generates the .pch
file

> ...and main.cpp (using PCH)...
>
> -ftemplate-depth-100 -O3 -finline-functions -Wno-inline -Wall
> -DNDEBUG -I"f:\devel\drop\boost" -include
> "..\..\..\..\build\test\pch\microsoft\gcc\release\stdafx.pch" -c -o
> "..\..\..\..\build\test\pch\microsoft\gcc\release\main.o"
> "..\microsoft\main.cpp"

And this breaks in compile.txt. Somehow the PCH_FILE variable is not set
when invoking the compile.c++ rule. Any Ideas on how to debug this ?

> Is this what you wanted?

Well, yes, it would be when I would see the "-include <pch-file>".
But this is magically missing and I don't have much experience with
debugging toolsets...

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold  ! Institut für Verkehrswesen, Eisenbahnbau
* voice: ++49 511 762-2529   ! und -betrieb, Universität Hannover  
* fax  : ++49 511 762-3001   ! Appelstrasse 9a, D-30167 Hannover
* hunold_at_[hidden] ! www.ive.uni-hannover.de





Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk