
3 Sep
2008
3 Sep
'08
6:16 p.m.
Scott Morgan
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.