Opened 16 years ago

Closed 15 years ago

#896 closed Bugs (fixed)

<native-wchar_t>off does not work when build with vc-8.0 — at Version 2

Reported by: sielenk Owned by: René Rivera
Milestone: Component: build
Version: None Severity: Showstopper
Keywords: Cc:

Description (last modified by René Rivera)

When the boost libraries are build with the build flag '-sBUILD="<native-wchar_t>off"' the resulting binaries still use the native wchar_t type.

Reason/Fix:
In vc-8_0-tools.jam the feature is defined as follows:
--- snip ---
feature native-wchar_t : on off ;
flags vc-8_0 C++FLAGS : /Zc:forScope ;
flags vc-8_0 C++FLAGS <native-wchar_t>on : /Zc:wchar_t ;
--- snip ---

But since 'on' is the default value for the new compiler, the defined flags are redundant and the flags for 'off' are missing.

To fix, change it to
--- snip ---
feature native-wchar_t : on off ;
flags vc-8_0 C++FLAGS : /Zc:forScope ;
flags vc-8_0 C++FLAGS <native-wchar_t>off : /Zc:wchar_t- ;
--- snip ---

Change History (2)

comment:1 by René Rivera, 15 years ago

Logged In: YES 
user_id=33595
Originator: NO

The problem seems to be present in BBv2 also. Will fix after the 1.34 release, since code is frozen at the moment.

comment:2 by René Rivera, 15 years ago

Description: modified (diff)
Resolution: Laterfixed
Severity: Showstopper
Status: assignedclosed

It seems BBv2 now handles this with brute force. It just turns on native wchar for any msvc >= 7. And there is no feature to do otherwise.

Note: See TracTickets for help on using tickets.