|
Boost Users : |
Subject: Re: [Boost-users] boost unit test framework exports std::basic_ostringstream
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2016-06-29 12:28:05
Sascha Kremers <Sascha.Kremers <at> gns-mbh.com> writes:
>
> The boost unit test framework exports std::basic_ostringstream to the dll.
> This causes linker errors on visual studio 2012 (LNK 2005), if the
> tested code contains std::basic_ostringstream.
>
> You can confirm the symbol std::basic_ostringstream is in
> boost_unit_test_framework-vc110-mt-1_61.dll by using dependency walker.
>
> I have the same problem with my self-built dlls as well as the ones
> downloaded from
> https://sourceforge.net/projects/boost/files/boost-binaries/.
>
> Is this a problem with boost or did I configure the build wrong?
I suspect the problem is rooted in the fact that you are mixing two different
VC++ runtimes. some.lib Is static library built against static runtime while
Boost.Test DLL is built against shared one.
Gennadiy
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