Boost logo

Boost Users :

From: Matthieu Brucher (matthieu.brucher_at_[hidden])
Date: 2008-08-29 20:46:02


Hi again,

Nobody has a clue on this matter ? Anyone uses Boost 1.36 with
multiple files with Visual Studio 2008 ?

Matthieu

2008/8/28 Matthieu Brucher <matthieu.brucher_at_[hidden]>:
> Hi,
>
> I'm trying to build a test suite that worked with Linux and an older
> Boost version (1.34.1). I tried to compile it with Visual Studio 2008
> SP1 with Boost 1.36 and I ran into this error :
> link /nologo /OUT:IRT_test_suit.exe /LIBPATH:D:\Travail\boost_1_36_0\lib "/LIBPA
> TH:D:\Python 2.5\libs" /LIBPATH:. IRT.lib boost_unit_test_framework-vc90-mt-1_36
> .lib tools\boost_main_test.obj test_light.obj
> boost_unit_test_framework-vc90-mt-1_36.lib(boost_unit_test_framework-vc90-mt-1_3
> 6.dll) : error LNK2005: "public: static class boost::unit_test::unit_test_log_t
> & __cdecl boost::unit_test::singleton<class boost::unit_test::unit_test_log_t>::
> instance(void)" (?instance@?$singleton_at_Vunit_test_log_t_at_unit_test_at_boost@@@unit_t
> est_at_boost@@SAAAVunit_test_log_t_at_23@XZ) déjà défini(e) dans test_light.obj
> IRT_test_suit.exe : fatal error LNK1169: un ou plusieurs symboles définis à diff
> érentes reprises ont été rencontrés
>
> boost_main_test.cpp consists of:
> #define BOOST_TEST_DYN_LINK
> #define BOOST_TEST_MODULE "IRT test suit"
> #include <boost/test/unit_test.hpp>
>
> And test_light.cpp:
> #include <boost/test/unit_test.hpp>
>
> Both files were compiled with the arguments cl /nologo /EHsc /Ox /MD
> -D_CRT_SECURE_NO_DEPRECATE -DWIN32 /TP /ID:\Travail\boo
> st_1_36_0 /I. /c test_light.cpp /Fotest_light.obj
>
> I didn't find a thing on the Internet with this issue, so I hope
> someone will have a clue...
>
> Matthieu
> --
> French PhD student
> Website : http://matthieu-brucher.developpez.com/
> Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
> LinkedIn : http://www.linkedin.com/in/matthieubrucher
>

-- 
French PhD student
Website : http://matthieu-brucher.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher

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