Boost logo

Boost-Build :

From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2007-12-21 07:23:53

Vladimir Prus wrote:
> On Thursday 11 October 2007 12:25:42 Johan Nilsson wrote:
>> error: in Jamfile</path/to/bbv2/example/pch>: pch target name `pch2'
>> should be the same as the base name of header file `include/pch.hpp'
>> ---
>> I don't know if this is an issue with the gcc compiler itself, or
>> with the gcc toolset pch support implementation.
> As already said, it's gcc limitation. I've added that to docs, as well
> as the link to issue with anonymous namespaces you've mentioned.


>>> And run "bjam -n pch=off" (on gcc/linux), I do see -Ifoobar on the
>>> command line. Do you have a small example where this is not
>>> working?
>> I'll have to get back to that. IIRC I only saw the problem when the
>> target using pch was a subproject, and I invoked the build from the
>> project root directory.
> Have you managed to create a reproducible test case for me to debug?

No, sorry. I've recently turned off pch entirely in my current project, as I
also was having problems when using msvc (changes in PCH sources - header
files - not being detected properly). Unfortunately I can't reproduce that
either, and it's a rather large-ish project.

/ Johan

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at