[Boost-bugs] [Boost C++ Libraries] #2919: Bcp.exe won't compile

Subject: [Boost-bugs] [Boost C++ Libraries] #2919: Bcp.exe won't compile
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-04-07 01:28:24


#2919: Bcp.exe won't compile
---------------------------------+------------------------------------------
 Reporter: seppi2112_at_[hidden] | Owner:
     Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: Building Boost
  Version: Boost 1.38.0 | Severity: Problem
 Keywords: BCP |
---------------------------------+------------------------------------------
 Compiling the boost_1_38_0 package in VC9 with Python 2.6. Everything
 works fine until the compiler gets to the BCP project and I get 10 linking
 errors. I'm completely new to Boost so the problem is probably on my end,
 but I have no idea how to resolve this. Any ideas?

 Error message follows:

 ------ Build started: Project: bcp, Configuration: Debug Win32 ------
 Linking...
 libboost_regex-vc90-mt-1_38.lib(w32_regex_traits.obj) : error LNK2005:
 "void __cdecl boost::re_detail::free_module(void *)"
 (?free_module_at_re_detail_at_boost@@YAXPAX_at_Z) already defined in
 libboost_regex-vc90-mt-gd-1_38.lib(w32_regex_traits.obj)

 libboost_regex-vc90-mt-1_38.lib(w32_regex_traits.obj) : error LNK2005:
 "private: void __thiscall
 boost::re_detail::w32_regex_traits_char_layer<char>::init(void)"
 (?init@?$w32_regex_traits_char_layer_at_D@re_detail_at_boost@@AAEXXZ) already
 defined in libboost_regex-vc90-mt-gd-1_38.lib(w32_regex_traits.obj)

 libboost_regex-vc90-mt-1_38.lib(regex_traits_defaults.obj) : error
 LNK2005: "char const * * boost::re_detail::def_coll_names"
 (?def_coll_names_at_re_detail_at_boost@@3PAPBDA) already defined in
 libboost_regex-vc90-mt-gd-1_38.lib(regex_traits_defaults.obj)

 libboost_regex-vc90-mt-1_38.lib(regex_traits_defaults.obj) : error
 LNK2005: "char const * * boost::re_detail::def_multi_coll"
 (?def_multi_coll_at_re_detail_at_boost@@3PAPBDA) already defined in
 libboost_regex-vc90-mt-gd-1_38.lib(regex_traits_defaults.obj)

 libboost_regex-vc90-mt-1_38.lib(regex.obj) : error LNK2005: "public:
 __thiscall boost::regex_error::regex_error(class
 std::basic_string<char,struct std::char_traits<char>,class
 std::allocator<char> > const &,enum
 boost::regex_constants::error_type,int)"
 (??0regex_error_at_boost@@QAE_at_ABV?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@W4error_type_at_regex_constants_at_1@H_at_Z)
 already defined in libboost_regex-vc90-mt-gd-1_38.lib(regex.obj)

 libboost_regex-vc90-mt-1_38.lib(regex.obj) : error LNK2005: "public:
 __thiscall boost::regex_error::regex_error(enum
 boost::regex_constants::error_type)"
 (??0regex_error_at_boost@@QAE_at_W4error_type_at_regex_constants_at_1@@Z) already
 defined in libboost_regex-vc90-mt-gd-1_38.lib(regex.obj)

 libboost_regex-vc90-mt-1_38.lib(regex.obj) : error LNK2005: "public:
 virtual __thiscall boost::regex_error::~regex_error(void)"
 (??1regex_error_at_boost@@UAE_at_XZ) already defined in libboost_regex-vc90-mt-
 gd-1_38.lib(regex.obj)

 libboost_regex-vc90-mt-1_38.lib(regex.obj) : error LNK2005: "public: void
 __thiscall boost::regex_error::raise(void)const "
 (?raise_at_regex_error_at_boost@@QBEXXZ) already defined in libboost_regex-vc90
 -mt-gd-1_38.lib(regex.obj)

 libboost_regex-vc90-mt-1_38.lib(regex.obj) : error LNK2005: "struct
 boost::re_detail::mem_block_cache boost::re_detail::block_cache"
 (?block_cache_at_re_detail_at_boost@@3Umem_block_cache_at_12@A) already defined in
 libboost_regex-vc90-mt-gd-1_38.lib(regex.obj)
 LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other
 libs; use /NODEFAULTLIB:library

 C:\boost_1_38_0\bin\Debug\bcp.exe : fatal error LNK1169: one or more
 multiply defined symbols found
 Build log was saved at
 "file://c:\boost_1_38_0\tools\bcp\bcp.dir\Debug\BuildLog.htm"
 bcp - 10 error(s), 1 warning(s)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/2919>
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:49:59 UTC