Boost logo

Boost Users :

From: John Maddock (john_at_[hidden])
Date: 2005-10-26 12:57:20


> I don't know if this is a bug or not, but using
> boost/test/floating_point_comparison.hpp in a precompiled header under
> VC71 on Windows yields multiply defined symbol errors for each file
> using it. The workaround is to not use it in a precompiled header but
> only in the source files where it is needed. Any ideas?

I suspect the mention of an anomymous namespace may be a clue here:
precompiled headers probably use the same mangled name for all translation
units, which would not be std conforming behaviour.

John.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net