Boost logo

Boost Users :

From: Adam Merz (adammerz_at_[hidden])
Date: 2008-09-03 14:16:23


Scott Morgan <blumf <at> blueyonder.co.uk> writes:
> Is there an option to build the Boost libs with or without the wchar_t
> treated as built in (that whole /Zc:wchar_t mess MS dropped on us)

How is being standards conformant 'a mess'?

Anyway, /Zc:wchar_t is passed to the compiler by default, and there is no
built-in option you can pass to bjam to control this behavior. However, what you
can do is, before building Boost, edit your tools/build/v2/tools/msvc.jam file
and remove '/Zc:wchar_t' from line 532. (Be sure to leave a space in front of
the line's terminating semicolon.) Then, to explicitly enable or disable the
option, you can pass either cxxflags="-Zc:wchar_t" or cxxflags="-Zc:wchar_t-" to
bjam.


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