Boost logo

Boost Users :

From: Ondrej Kuncar (kxenator_at_[hidden])
Date: 2008-06-14 10:54:26


Hello!
I've built the boost library by Visual Studio 2008 Express with these
parameters:
debug threading=multi link=static runtime-link=shared
--toolset="msvc-9.0" install

Unfortunately I got the following linker errors during building my
application:

libboost_program_options-vc90-mt-gd-1_35.lib(convert.obj) : warning
LNK4217: locally defined symbol ?_Register_at_facet@locale_at_std@@QAEXXZ
(public: void __thiscall std::locale::facet::_Register(void)) imported
in function "class std::codecvt<wchar_t,char,int> const & __cdecl
std::use_facet<class std::codecvt<wchar_t,char,int> >(class std::locale
const &)"
(??$use_facet_at_V?$codecvt@_WDH_at_std@@@std@@YAABV?$codecvt@_WDH_at_0@ABVlocale_at_0@@Z)
libboost_program_options-vc90-mt-gd-1_35.lib(cmdline.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public: void
__thiscall std::_Container_base::_Orphan_all(void)const "
(__imp_?_Orphan_all@_Container_base_at_std@@QBEXXZ)
libboost_regex-vc90-mt-gd-1_35.lib(instances.obj) : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: void
__thiscall std::_Container_base::_Orphan_all(void)const "
(__imp_?_Orphan_all@_Container_base_at_std@@QBEXXZ) referenced in function
"public: class std::vector<struct boost::sub_match<char const *>,class
std::allocator<struct boost::sub_match<char const *> > > & __thiscall
std::vector<struct boost::sub_match<char const *>,class
std::allocator<struct boost::sub_match<char const *> >
>::operator=(class std::vector<struct boost::sub_match<char const
*>,class std::allocator<struct boost::sub_match<char const *> > > const
&)"
(??4?$vector_at_U?$sub_match_at_PBD@boost@@V?$allocator_at_U?$sub_match_at_PBD@boost@@@std@@@std@@QAEAAV01_at_ABV01@@Z)
libboost_program_options-vc90-mt-gd-1_35.lib(options_description.obj) :
error LNK2001: unresolved external symbol "__declspec(dllimport) public:
void __thiscall std::_Container_base::_Orphan_all(void)const "
(__imp_?_Orphan_all@_Container_base_at_std@@QBEXXZ)
libboost_program_options-vc90-mt-gd-1_35.lib(value_semantic.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public: void
__thiscall std::_Container_base::_Orphan_all(void)const "
(__imp_?_Orphan_all@_Container_base_at_std@@QBEXXZ)
libboost_program_options-vc90-mt-gd-1_35.lib(positional_options.obj) :
error LNK2001: unresolved external symbol "__declspec(dllimport) public:
void __thiscall std::_Container_base::_Orphan_all(void)const "
(__imp_?_Orphan_all@_Container_base_at_std@@QBEXXZ)
libboost_program_options-vc90-mt-gd-1_35.lib(positional_options.obj) :
error LNK2001: unresolved external symbol "__declspec(dllimport) public:
__thiscall std::_Container_base::~_Container_base(void)"
(__imp_??1_Container_base_at_std@@QAE_at_XZ)
libboost_program_options-vc90-mt-gd-1_35.lib(cmdline.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
__thiscall std::_Container_base::~_Container_base(void)"
(__imp_??1_Container_base_at_std@@QAE_at_XZ)
libboost_regex-vc90-mt-gd-1_35.lib(instances.obj) : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: __thiscall
std::_Container_base::~_Container_base(void)"
(__imp_??1_Container_base_at_std@@QAE_at_XZ) referenced in function "public:
__thiscall std::_Vector_val<struct boost::sub_match<char const *>,class
std::allocator<struct boost::sub_match<char const *> >
>::~_Vector_val<struct boost::sub_match<char const *>,class
std::allocator<struct boost::sub_match<char const *> > >(void)"
(??1?$_Vector_val_at_U?$sub_match_at_PBD@boost@@V?$allocator_at_U?$sub_match_at_PBD@boost@@@std@@@std@@QAE_at_XZ)
libboost_program_options-vc90-mt-gd-1_35.lib(options_description.obj) :
error LNK2001: unresolved external symbol "__declspec(dllimport) public:
__thiscall std::_Container_base::~_Container_base(void)"
(__imp_??1_Container_base_at_std@@QAE_at_XZ)
libboost_program_options-vc90-mt-gd-1_35.lib(value_semantic.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
__thiscall std::_Container_base::~_Container_base(void)"
(__imp_??1_Container_base_at_std@@QAE_at_XZ)
libboost_program_options-vc90-mt-gd-1_35.lib(variables_map.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
__thiscall std::_Container_base::~_Container_base(void)"
(__imp_??1_Container_base_at_std@@QAE_at_XZ)
libboost_program_options-vc90-mt-gd-1_35.lib(positional_options.obj) :
error LNK2001: unresolved external symbol "__declspec(dllimport) public:
__thiscall std::_Container_base::_Container_base(void)"
(__imp_??0_Container_base_at_std@@QAE_at_XZ)
libboost_program_options-vc90-mt-gd-1_35.lib(cmdline.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
__thiscall std::_Container_base::_Container_base(void)"
(__imp_??0_Container_base_at_std@@QAE_at_XZ)
libboost_regex-vc90-mt-gd-1_35.lib(instances.obj) : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: __thiscall
std::_Container_base::_Container_base(void)"
(__imp_??0_Container_base_at_std@@QAE_at_XZ) referenced in function
"protected: __thiscall std::_Vector_val<struct boost::sub_match<char
const *>,class std::allocator<struct boost::sub_match<char const *> >
>::_Vector_val<struct boost::sub_match<char const *>,class
std::allocator<struct boost::sub_match<char const *> > >(class
std::allocator<struct boost::sub_match<char const *> >)"
(??0?$_Vector_val_at_U?$sub_match_at_PBD@boost@@V?$allocator_at_U?$sub_match_at_PBD@boost@@@std@@@std@@IAE_at_V?$allocator_at_U?$sub_match_at_PBD@boost@@@1@@Z)
libboost_program_options-vc90-mt-gd-1_35.lib(options_description.obj) :
error LNK2001: unresolved external symbol "__declspec(dllimport) public:
__thiscall std::_Container_base::_Container_base(void)"
(__imp_??0_Container_base_at_std@@QAE_at_XZ)
libboost_program_options-vc90-mt-gd-1_35.lib(value_semantic.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
__thiscall std::_Container_base::_Container_base(void)"
(__imp_??0_Container_base_at_std@@QAE_at_XZ)
libboost_program_options-vc90-mt-gd-1_35.lib(variables_map.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public:
__thiscall std::_Container_base::_Container_base(void)"
(__imp_??0_Container_base_at_std@@QAE_at_XZ)
libboost_regex-vc90-mt-gd-1_35.lib(instances.obj) : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: void
__thiscall std::_Container_base::_Swap_all(class std::_Container_base
&)const " (__imp_?_Swap_all@_Container_base_at_std@@QBEXAAV12@@Z)
referenced in function "public: void __thiscall std::vector<struct
boost::sub_match<char const *>,class std::allocator<struct
boost::sub_match<char const *> > >::swap(class std::vector<struct
boost::sub_match<char const *>,class std::allocator<struct
boost::sub_match<char const *> > > &)"
(?swap@?$vector_at_U?$sub_match_at_PBD@boost@@V?$allocator_at_U?$sub_match_at_PBD@boost@@@std@@@std@@QAEXAAV12@@Z)
libboost_regex-vc90-mt-gd-1_35.lib(instances.obj) : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: class
std::_String_iterator<char,struct std::char_traits<char>,class
std::allocator<char> > __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::insert(class
std::_String_iterator<char,struct std::char_traits<char>,class
std::allocator<char> >,char)"
(__imp_?insert@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE?AV?$_String_iterator_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@2_at_V32@D_at_Z)
referenced in function "public: struct boost::re_detail::re_syntax_base
* __thiscall boost::re_detail::basic_regex_creator<char,struct
boost::regex_traits<char,class boost::w32_regex_traits<char> >
>::append_set(class boost::re_detail::basic_char_set<char,struct
boost::regex_traits<char,class boost::w32_regex_traits<char> > > const
&,struct boost::mpl::bool_<0> *)"
(?append_set@?$basic_regex_creator_at_DU?$regex_traits_at_DV?$w32_regex_traits_at_D@boost@@@boost@@@re_detail_at_boost@@QAEPAUre_syntax_base_at_23@ABV?$basic_char_set_at_DU?$regex_traits_at_DV?$w32_regex_traits_at_D@boost@@@boost@@@23_at_PAU?$bool_@$0A@@mpl_at_3@@Z)
libboost_program_options-vc90-mt-gd-1_35.lib(value_semantic.obj) : error
LNK2019: unresolved external symbol "__declspec(dllimport) public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > & __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::replace(class
std::_String_iterator<char,struct std::char_traits<char>,class
std::allocator<char> >,class std::_String_iterator<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(__imp_?replace@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAEAAV12_at_V?$_String_iterator_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@2_at_0ABV12@@Z)
referenced in function "public: class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > & __thiscall
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> >::_Replace<char *>(class
std::_String_iterator<char,struct std::char_traits<char>,class
std::allocator<char> >,class std::_String_iterator<char,struct
std::char_traits<char>,class std::allocator<char> >,char *,char *,struct
std::input_iterator_tag)"
(??$_Replace_at_PAD@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAEAAV01_at_V?$_String_iterator_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@1_at_0PAD1Uinput_iterator_tag_at_1@@Z)
libboost_program_options-vc90-mt-gd-1_35.lib(convert.obj) : error
LNK2001: unresolved external symbol "__declspec(dllimport) public: class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > & __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::replace(class
std::_String_iterator<char,struct std::char_traits<char>,class
std::allocator<char> >,class std::_String_iterator<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::basic_string<char,struct std::char_traits<char>,class
std::allocator<char> > const &)"
(__imp_?replace@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAEAAV12_at_V?$_String_iterator_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@2_at_0ABV12@@Z)
libboost_program_options-vc90-mt-gd-1_35.lib(cmdline.obj) : error
LNK2019: unresolved external symbol "__declspec(dllimport) public: class
std::_String_iterator<char,struct std::char_traits<char>,class
std::allocator<char> > __thiscall std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >::erase(class
std::_String_iterator<char,struct std::char_traits<char>,class
std::allocator<char> >)"
(__imp_?erase@?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@QAE?AV?$_String_iterator_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@2_at_V32@@Z)
referenced in function "public: class std::vector<class
boost::program_options::basic_option<char>,class std::allocator<class
boost::program_options::basic_option<char> > > __thiscall
boost::program_options::detail::cmdline::parse_short_option(class
std::vector<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >,class
std::allocator<class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > > > &)"
(?parse_short_option_at_cmdline@detail_at_program_options_at_boost@@QAE?AV?$vector_at_V?$basic_option_at_D@program_options_at_boost@@V?$allocator_at_V?$basic_option_at_D@program_options_at_boost@@@std@@@std@@AAV?$vector_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@V?$allocator_at_V?$basic_string_at_DU?$char_traits_at_D@std@@V?$allocator_at_D@2@@std@@@2@@6@@Z)
libboost_program_options-vc90-mt-gd-1_35.lib(convert.obj) : error
LNK2019: unresolved external symbol "__declspec(dllimport) public:
static unsigned int __cdecl
std::codecvt<wchar_t,char,int>::_Getcat(class std::locale::facet const *
*)" (__imp_?_Getcat@?$codecvt@_WDH_at_std@@SAIPAPBVfacet_at_locale@2@@Z)
referenced in function "class std::codecvt<wchar_t,char,int> const &
__cdecl std::use_facet<class std::codecvt<wchar_t,char,int> >(class
std::locale const &)"
(??$use_facet_at_V?$codecvt@_WDH_at_std@@@std@@YAABV?$codecvt@_WDH_at_0@ABVlocale_at_0@@Z)
libboost_program_options-vc90-mt-gd-1_35.lib(convert.obj) : error
LNK2019: unresolved external symbol "__declspec(dllimport) public: class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > & __thiscall std::basic_string<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t> >::replace(class
std::_String_iterator<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> >,class std::_String_iterator<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t> >,class
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> > const &)"
(__imp_?replace@?$basic_string@_WU?$char_traits@_W_at_std@@V?$allocator@_W_at_2@@std@@QAEAAV12_at_V?$_String_iterator@_WU?$char_traits@_W_at_std@@V?$allocator@_W_at_2@@2_at_0ABV12@@Z)
referenced in function "public: class std::basic_string<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t> > & __thiscall
std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> >::_Replace<wchar_t *>(class
std::_String_iterator<wchar_t,struct std::char_traits<wchar_t>,class
std::allocator<wchar_t> >,class std::_String_iterator<wchar_t,struct
std::char_traits<wchar_t>,class std::allocator<wchar_t> >,wchar_t
*,wchar_t *,struct std::input_iterator_tag)"
(??$_Replace_at_PA_W@?$basic_string@_WU?$char_traits@_W_at_std@@V?$allocator@_W_at_2@@std@@QAEAAV01_at_V?$_String_iterator@_WU?$char_traits@_W_at_std@@V?$allocator@_W_at_2@@1_at_0PA_W1Uinput_iterator_tag_at_1@@Z)

I downloaded compiled libraries from boost-consulting and it works with
them.
Any idea where is the problem?

Thanks,
Ondrej Kuncar


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