Boost logo

Boost :

Subject: Re: [boost] [build] Little help required
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2011-12-06 13:26:18


AMDG

On 12/06/2011 08:54 AM, Antony Polukhin wrote:
> 2011/12/6 Steven Watanabe <watanabesj_at_[hidden]>:
>>
>> Add <toolset>msvc:<cxxflags>/Zc:wchar_t- to the
>> requirements.
>>
>
> Tried :
>
> [ run lexical_cast_typedefed_wchar_test.cpp
> ../../test/build//boost_unit_test_framework/<link>static : : :
> <toolset>msvc:<cxxflags>/Zc:wchar_t- : : ]
>
> And... It does not work. Looks like "/Zc:wchar_t-" changes methods signatures.
> And that leads to linker errors:
>
> lexical_cast_typedefed_wchar_test.obj : error LNK2001: unresolved
> external symbol "public: virtual void __thiscall
> boost::unit_test::unit_test_log_t::test_start(unsigned long)"
> (?test_start_at_unit_test_log_t_at_unit_test_at_boost@@UAEXK_at_Z)
> lexical_cast_typedefed_wchar_test.obj : error LNK2001: unresolved
> external symbol "public: virtual void __thiscall
> boost::unit_test::unit_test_log_t::test_finish(void)"
> (?test_finish_at_unit_test_log_t_at_unit_test_at_boost@@UAEXXZ)
> l
> ...
>
> Any other ideas?
>

Ah. So the test library needs to be
compiled with this option as well:

import feature ;

feature.feature nowchar : on :
  composite optional propagated link-incompatible ;

feature.compose <nowchar>on : <cxxflags>/Zc:wchar_t- ;

...

<toolset>msvc:<nowchar>on

(Warning: untested)

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk