Subject: [Boost-bugs] [Boost C++ Libraries] #10654: Compiling/linking in MS Visual Studio Express 2013
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-10-13 19:13:25
#10654: Compiling/linking in MS Visual Studio Express 2013
-------------------------------------------+------------------------------
Reporter: James Henry <tigerstripe40@â¦> | Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.56.0
Severity: Problem | Keywords:
-------------------------------------------+------------------------------
Trying to run boost testing for Exercism Bob C++ exercise.
I cannot run the test.
Getting:
Error 1 error LNK2005: "bool __cdecl init_unit_test(void)"
(?init_unit_test@@YA_NXZ) already defined in bob.obj
C:\Users\bubba\exercism\cpp\bob\Bob\bob_test.obj Bob
Error 2 error LNK2005: _main already defined in bob.obj
C:\Users\bubba\exercism\cpp\bob\Bob\bob_test.obj Bob
Error 3 error LNK1104: cannot open file
'boost_unit_test_framework-vc120-mt-gd-1_56.lib'
C:\Users\bubba\exercism\cpp\bob\Bob\LINK Bob
Error 3 indicates cannot open file: 'boost_unit_test_framework-vc120-mt-
gd-1_56.lib'
However, I have 'libboost_unit_test_framework-vc120-mt-gd-1_56.lib' in the
path.
renaming the file results in the following errors:
Error 1 error LNK2005: "bool __cdecl init_unit_test(void)"
(?init_unit_test@@YA_NXZ) already defined in bob.obj
C:\Users\bubba\exercism\cpp\bob\Bob\bob_test.obj Bob
Error 2 error LNK2005: _main already defined in bob.obj
C:\Users\bubba\exercism\cpp\bob\Bob\bob_test.obj Bob
Error 3 error LNK2019: unresolved external symbol
"__declspec(dllimport) 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)"
(__imp_?instance@?$singleton_at_Vunit_test_log_t_at_unit_test_at_boost@@@unit_test_at_boost@@SAAAVunit_test_log_t_at_23@XZ)
referenced in function "void __cdecl boost::unit_test::`anonymous
namespace'::`dynamic initializer for 'unit_test_log''(void)"
(??__Eunit_test_log@?A0xd6c0e76d_at_unit_test_at_boost@@YAXXZ)
C:\Users\bubba\exercism\cpp\bob\Bob\bob.obj Bob
Error 4 error LNK2001: unresolved external symbol
"__declspec(dllimport) 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)"
(__imp_?instance@?$singleton_at_Vunit_test_log_t_at_unit_test_at_boost@@@unit_test_at_boost@@SAAAVunit_test_log_t_at_23@XZ)
C:\Users\bubba\exercism\cpp\bob\Bob\bob_test.obj Bob
Error 5 error LNK2019: unresolved external symbol
"__declspec(dllimport) int __cdecl boost::unit_test::unit_test_main(bool
(__cdecl*)(void),int,char * * const)"
(__imp_?unit_test_main_at_unit_test_at_boost@@YAHP6A_NXZHQAPAD_at_Z) referenced in
function _main C:\Users\bubba\exercism\cpp\bob\Bob\bob.obj Bob
Error 6 error LNK2001: unresolved external symbol
"__declspec(dllimport) int __cdecl boost::unit_test::unit_test_main(bool
(__cdecl*)(void),int,char * * const)"
(__imp_?unit_test_main_at_unit_test_at_boost@@YAHP6A_NXZHQAPAD_at_Z)
C:\Users\bubba\exercism\cpp\bob\Bob\bob_test.obj Bob
Error 7 error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
boost::test_tools::predicate_result::predicate_result(bool)"
(__imp_??0predicate_result_at_test_tools_at_boost@@QAE@_N_at_Z) referenced in
function "class boost::test_tools::predicate_result __cdecl
boost::test_tools::tt_detail::equal_impl<class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >,char const *>(class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const &,char const *
const &)"
(??$equal_impl_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@PBD_at_tt_detail_at_test_tools_at_boost@@YA?AVpredicate_result_at_12@ABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@ABQBD_at_Z)
C:\Users\bubba\exercism\cpp\bob\Bob\bob_test.obj Bob
Error 8 error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
boost::test_tools::predicate_result::~predicate_result(void)"
(__imp_??1predicate_result_at_test_tools_at_boost@@QAE_at_XZ) referenced in
function "bool __cdecl boost::test_tools::tt_detail::check_frwd<struct
boost::test_tools::tt_detail::equal_impl_frwd,char const [10],class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > >(struct
boost::test_tools::tt_detail::equal_impl_frwd,class
boost::unit_test::lazy_ostream const &,class
boost::unit_test::basic_cstring<char const >,unsigned int,enum
boost::test_tools::tt_detail::tool_level,enum
boost::test_tools::tt_detail::check_type,char const (&)[10],char const
*,class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,char const *)"
(??$check_frwd_at_Uequal_impl_frwd_at_tt_detail_at_test_tools_at_boost@@$$BY09$$CBDV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@tt_detail_at_test_tools_at_boost@@YA_NUequal_impl_frwd_at_012@ABVlazy_ostream_at_unit_test_at_2@V?$basic_cstring@$$CBD_at_52@IW4tool_level_at_012@W4check_type_at_012@AAY09$$CBDPBDABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@6_at_Z)
C:\Users\bubba\exercism\cpp\bob\Bob\bob_test.obj Bob
Error 9 error LNK2019: unresolved external symbol
"__declspec(dllimport) public: void __thiscall
boost::unit_test::unit_test_log_t::set_checkpoint(class
boost::unit_test::basic_cstring<char const >,unsigned int,class
boost::unit_test::basic_cstring<char const >)"
(__imp_?set_checkpoint_at_unit_test_log_t_at_unit_test_at_boost@@QAEXV?$basic_cstring@$$CBD_at_23@I0_at_Z)
referenced in function "public: void __thiscall
stating_something::test_method(void)"
(?test_method_at_stating_something@@QAEXXZ)
C:\Users\bubba\exercism\cpp\bob\Bob\bob_test.obj Bob
Error 10 error LNK2019: unresolved external symbol
"__declspec(dllimport) bool __cdecl
boost::test_tools::tt_detail::check_impl(class
boost::test_tools::predicate_result const &,class
boost::unit_test::lazy_ostream const &,class
boost::unit_test::basic_cstring<char const >,unsigned int,enum
boost::test_tools::tt_detail::tool_level,enum
boost::test_tools::tt_detail::check_type,unsigned int,...)"
(__imp_?check_impl_at_tt_detail_at_test_tools_at_boost@@YA_NABVpredicate_result_at_23@ABVlazy_ostream_at_unit_test_at_3@V?$basic_cstring@$$CBD_at_63@IW4tool_level_at_123@W4check_type_at_123@IZZ)
referenced in function "bool __cdecl
boost::test_tools::tt_detail::check_frwd<struct
boost::test_tools::tt_detail::equal_impl_frwd,char const [10],class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > >(struct
boost::test_tools::tt_detail::equal_impl_frwd,class
boost::unit_test::lazy_ostream const &,class
boost::unit_test::basic_cstring<char const >,unsigned int,enum
boost::test_tools::tt_detail::tool_level,enum
boost::test_tools::tt_detail::check_type,char const (&)[10],char const
*,class std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &,char const *)"
(??$check_frwd_at_Uequal_impl_frwd_at_tt_detail_at_test_tools_at_boost@@$$BY09$$CBDV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@tt_detail_at_test_tools_at_boost@@YA_NUequal_impl_frwd_at_012@ABVlazy_ostream_at_unit_test_at_2@V?$basic_cstring@$$CBD_at_52@IW4tool_level_at_012@W4check_type_at_012@AAY09$$CBDPBDABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@6_at_Z)
C:\Users\bubba\exercism\cpp\bob\Bob\bob_test.obj Bob
Error 11 error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
boost::unit_test::test_case::test_case(class
boost::unit_test::basic_cstring<char const >,class
boost::unit_test::callback0<struct boost::unit_test::ut_detail::unused>
const &)"
(__imp_??0test_case_at_unit_test_at_boost@@QAE_at_V?$basic_cstring@$$CBD_at_12@ABV?$callback0_at_Uunused@ut_detail_at_unit_test_at_boost@@@12@@Z)
referenced in function "class boost::unit_test::test_case * __cdecl
boost::unit_test::make_test_case(class boost::unit_test::callback0<struct
boost::unit_test::ut_detail::unused> const &,class
boost::unit_test::basic_cstring<char const >)"
(?make_test_case_at_unit_test_at_boost@@YAPAVtest_case_at_12@ABV?$callback0_at_Uunused@ut_detail_at_unit_test_at_boost@@@12_at_V?$basic_cstring@$$CBD_at_12@@Z)
C:\Users\bubba\exercism\cpp\bob\Bob\bob_test.obj Bob
Error 12 error LNK2019: unresolved external symbol
"__declspec(dllimport) class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > __cdecl
boost::unit_test::ut_detail::normalize_test_case_name(class
boost::unit_test::basic_cstring<char const >)"
(__imp_?normalize_test_case_name_at_ut_detail_at_unit_test_at_boost@@YA?AV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@V?$basic_cstring@$$CBD_at_23@@Z)
referenced in function "class boost::unit_test::test_case * __cdecl
boost::unit_test::make_test_case(class boost::unit_test::callback0<struct
boost::unit_test::ut_detail::unused> const &,class
boost::unit_test::basic_cstring<char const >)"
(?make_test_case_at_unit_test_at_boost@@YAPAVtest_case_at_12@ABV?$callback0_at_Uunused@ut_detail_at_unit_test_at_boost@@@12_at_V?$basic_cstring@$$CBD_at_12@@Z)
C:\Users\bubba\exercism\cpp\bob\Bob\bob_test.obj Bob
Error 13 error LNK2019: unresolved external symbol
"__declspec(dllimport) public: __thiscall
boost::unit_test::ut_detail::auto_test_unit_registrar::auto_test_unit_registrar(class
boost::unit_test::test_case *,unsigned long)"
(__imp_??0auto_test_unit_registrar_at_ut_detail_at_unit_test_at_boost@@QAE_at_PAVtest_case_at_23@K_at_Z)
referenced in function "void __cdecl `dynamic initializer for
'stating_something_registrar5''(void)"
(??__Estating_something_registrar5@@YAXXZ)
C:\Users\bubba\exercism\cpp\bob\Bob\bob_test.obj Bob
Error 14 error LNK1120: 9 unresolved externals
C:\Users\bubba\exercism\cpp\bob\Bob\Debug\Bob.exe Bob
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10654> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC