Boost logo

Boost-Build :

From: debionne_at_[hidden]
Date: 2006-10-27 10:53:19


I'm just starting some tests of the PCH functionnalities of bbv2 and I'm
facing with the following problem :

I have a lib, compiled with pch :

cpp-pch foo-pch
   : # sources
     ./src/foo_pch.h
   : # requiremnts
     <toolset>msvc:<source>./src/foo_pch.cpp
   ;

lib libfoo
   : foo-pch
     ./src/foo.cpp
   ;

This works fine, which is already nice !
Then I use libfoo in an exe target :

exe foo
   : main.cpp
   : <source>libfoo
   ;

The compilation of main.cpp fails with the following message :
fatal error C1010: unexpected end of file while looking for precompiled
header. Did you forget to add '#include "foo_pch.h"' to your source?

But actually, the compiler should not be looking for PCH, since my
main.cpp does not need any of the headers used by the lib. It seems that
the -Yu flag is set/propogated while, IMO, it should not. So is this
expected ?

I'm using a fresh checkout from CVS.
Thank you for yout help,
Samuel


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