Hi,
Meanwhile, I investigated the matter a little further. This symbole is
defined in the Boost unit test framework library, so it should have
been included in the object file. May it be a Visual Studio issue ?
Was Boost 1.36 tested with Visual Studio 2008 SP1 ?
On a side note, there is no multi-file Boost.Test example.
Matthieu
2008/8/30 Matthieu Brucher
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
: 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@Vunit_test_log_t@unit_test@boost@@@unit_t est@boost@@SAAAVunit_test_log_t@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
And test_light.cpp: #include
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
-- 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