Boost logo

Boost :

Subject: [boost] [tr1][spirit][hash] Boost trunk +VC9 - autolinking libboost_math
From: Richard Webb (richard.webb_at_[hidden])
Date: 2008-10-05 13:24:23

When test building some code with VC9 + the current Boost trunk i had a link
failure due to a missing libboost_math_c99-vc90-mt-1_37.lib, which i hadnt
built because i'm not using the math lib.

On investigation, this seems to be down to using Spirit/Hash(via
multi_index) when the "boost/tr1/tr1" dir is in the include path. More
specifically, the files:


do an include <cmath>, which in this case includes <boost\tr1\cmath.hpp>,
which then includes <boost/math/tr1.hpp>, autolinking and all.

I can work around the problem by building the math lib or turning off auto
linking for it but it seems wrong that i have to do that.
Is there a better official solution for this, such as using
<config/no_tr1/cmath.hpp> instead of <cmath> ?

Richard Webb

View this message in context:
Sent from the Boost - Dev mailing list archive at

Boost list run by bdawes at, gregod at, cpdaniel at, john at