Boost logo

Boost-Build :

From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2007-10-05 02:25:03


Hi,

after attempting to use precompiled headers toghether with gcc 4.1.2, I
figured I might as well post my "findings" here.

Pre-4.2.0 gcc can't handle pch and anonymous namespaces in headers, ref:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29085

This makes it virtually impossible to use pch toghether with e.g.
Boost.Lambda, Boost.Parameter to build programs with multiple translation
units.

Perhaps a note of this could be added to the BBv2 pch docs?

Also - is it possible to disable pch using conditional requirements, making
the pch rule effectively returning a "null" target?

/ Johan


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