[1.34.0] MSVC - How to build Boost without native wchar_t support
Hello,
I'm using the Microsoft Visual C++ 7.1 and 8.0 compilers and I want to
build Boost 1.34.0 without native wchar_t support. With Boost 1.32.0 I
used the feature
on Tue May 15 2007, Jochen Hammann
Hello,
I'm using the Microsoft Visual C++ 7.1 and 8.0 compilers and I want to build Boost 1.34.0 without native wchar_t support. With Boost 1.32.0 I used the feature
to turn off the native wchar_t support of the Microsoft compilers. It seams that this feature isn't supported by the MSVC toolset any more. Is it possible to turn off the native wchar_t support within the command line of bjam?
You can always add cxxflags=<whatever> linkflags=<something> to explicitly control the raw compiler command lines. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com Don't Miss BoostCon 2007! ==> http://www.boostcon.com
David Abrahams wrote:
on Tue May 15 2007, Jochen Hammann
wrote: Hello,
I'm using the Microsoft Visual C++ 7.1 and 8.0 compilers and I want to build Boost 1.34.0 without native wchar_t support. With Boost 1.32.0 I used the feature
to turn off the native wchar_t support of the Microsoft compilers. It seams that this feature isn't supported by the MSVC toolset any more. Is it possible to turn off the native wchar_t support within the command line of bjam?
You can always add cxxflags=<whatever> linkflags=<something>
to explicitly control the raw compiler command lines.
Thank you for your reply. The problem is that the compiler option /Zc:wchar_t is set by default within the msvc toolset. And I want this compiler option not to be set during compilation. I tried your suggestion and used the cxxflags feature. Unfortunately with no success. I think I'm missing something. The command line bjam.exe --toolset=msvc-7.1 cxxflags="-Zc:wchar_t-" --with-program_options stage -a -d 2 results in the following output ---------- file bin.v2\libs\program_options\build\msvc-7.1\debug\threading-multi\cmdline.obj.rsp "libs\program_options\src\cmdline.cpp" -Fo"bin.v2\libs\program_options\build\msvc-7.1\debug\threading-multi\cmdline.obj" -TP /Z7 /Od /Ob0 /W3 /GR /MDd /Zc:forScope /Zc:wchar_t /GB /Op /wd4675 /EHs -c -DBOOST_ALL_NO_LIB=1 -DBOOST_PROGRAM_OPTIONS_DYN_LINK=1 "-I." compile-c-c++ bin.v2\libs\program_options\build\msvc-7.1\debug\threading-multi\cmdline.obj call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" >nul cl /Zm800 -nologo @"bin.v2\libs\program_options\build\msvc-7.1\debug\threading-multi\cmdline.obj.rsp" .... ---------- I also tried the option cxxflags="/Zc:wchar_t-" ('/Zc' instead of '-Zc'). But this results in the error "Invalid property '<cxxflags>': No value specified for feature 'cxxflags'". Is there a way to get rid of the compiler option /Zc:wchar_t with a command line parameter of bjam, or do I have to modify the msvc.jam file? Many thanks, Jochen.
participants (2)
-
David Abrahams
-
Jochen Hammann