Boost logo

Boost-Build :

From: Jaroslav Gresula (jgresula.LEAVE-THIS-OUT_at_[hidden])
Date: 2007-12-31 12:39:16


It seems that the msvc toolset (trunk version) handles PCH incorrectly
in case there is <implicit-dependency> feature in target requirements.

I've created a test case that demonstrates the problem. It comprises
of two projects /proj1 and /proj2, /proj2 has <implicit-dependency> on
/proj1 in its requirements.

'bjam /proj2 msvc' fails with the following error:

... fatal error C1010: unexpected end of file while looking for
precompiled header. Did you forget to add '#include "precompiled.pch"'
to your source?

I think msvc toolset puts "precompiled.pch" instead of
"precompiled.h" to cl.exe command line.

'bjam /proj2 gcc' works fine. When <implicit-dependency> is removed,
msvc compiles fine as well.

-- 
Jarda



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