Boost logo

Boost Users :

From: David R. Palmer (dpalmer_at_[hidden])
Date: 2008-01-20 21:27:31


John Maddock wrote:
> David R. Palmer wrote:
>
>> But the compiler is looking for;
>>
>> libboost_regex-vc80-mt-gd-1_34_1.lib(instances.obj) : error LNK2019:
>> unresolved external symbol
>>
>> Shouldn't it be looking for the vc90 version?
>>
>
> Weeee...ll VC9 didn't exist when 1.34 was released so it knows nothing about
> it: if you update boost/config/auto_link.hpp with the one from SVN
> (http://svn.boost.org/trac/boost/browser/trunk/boost/config/auto_link.hpp)
> that should fix that problem.
>
> HTH, John.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>
Okay, I downloaded the auto_link.hpp and placed it in the C:\Program
Files\boost\boost_1_34_1\boost\config directory.

It is still looking for the older version of the libraries. The
libraries have been built and exist, so that isn't the problem.

Any help would be appreciated. Thanks.

Dave

1>------ Rebuild All started: Project: example, Configuration: Debug
Win32 ------
1>Deleting intermediate and output files for project 'example',
configuration 'Debug|Win32'
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>example.cpp
1>*Unknown compiler version - please run the configure tests and report
the results*
1>AssemblyInfo.cpp
1>Generating Code...
1>Compiling resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>Searching libraries
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\MSVCRTD.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\OLDNAMES.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\MSVCMRTD.lib:
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\MSCOREE.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\msvcprtd.lib:
1> Searching C:\Program
Files\boost\boost_1_34_1\lib\libboost_regex-vc80-mt-gd-1_34_1.lib:
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\kernel32.lib:
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\user32.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\MSVCRTD.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\OLDNAMES.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\MSVCMRTD.lib:
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\MSCOREE.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\msvcprtd.lib:
1> *Searching C:\Program
Files\boost\boost_1_34_1\lib\libboost_regex-vc80-mt-gd-1_34_1.lib:*
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\kernel32.lib:
1>Finished searching libraries
1>Searching libraries
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\MSVCRTD.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\OLDNAMES.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\MSVCMRTD.lib:
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\MSCOREE.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\msvcprtd.lib:
1> *Searching C:\Program
Files\boost\boost_1_34_1\lib\libboost_regex-vc80-mt-gd-1_34_1.lib:*
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\kernel32.lib:
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\user32.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\MSVCRTD.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\OLDNAMES.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\MSVCMRTD.lib:
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\MSCOREE.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\msvcprtd.lib:
1>Finished searching libraries
1>Searching libraries
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\MSVCRTD.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\OLDNAMES.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\MSVCMRTD.lib:
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\MSCOREE.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\msvcprtd.lib:
1> * Searching C:\Program
Files\boost\boost_1_34_1\lib\libboost_regex-vc80-mt-gd-1_34_1.lib:*
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\kernel32.lib:
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\user32.lib:
1>Finished searching libraries
1>Searching libraries
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\MSVCRTD.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\OLDNAMES.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\MSVCMRTD.lib:
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\MSCOREE.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\msvcprtd.lib:
1> * Searching C:\Program
Files\boost\boost_1_34_1\lib\libboost_regex-vc80-mt-gd-1_34_1.lib:*
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\kernel32.lib:
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\user32.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\MSVCRTD.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\OLDNAMES.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\MSVCMRTD.lib:
1>Finished searching libraries
1>Searching libraries
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\MSVCRTD.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\OLDNAMES.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\MSVCMRTD.lib:
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\MSCOREE.lib:
1> Searching C:\Program Files\Microsoft Visual Studio
9.0\VC\lib\msvcprtd.lib:
1> *Searching C:\Program
Files\boost\boost_1_34_1\lib\libboost_regex-vc80-mt-gd-1_34_1.lib:*
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\kernel32.lib:
1> Searching C:\Program Files\Microsoft
SDKs\Windows\v6.0A\\lib\user32.lib:
1>Finished searching libraries
1>libboost_regex-vc80-mt-gd-1_34_1.lib(usinstances.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<unsigned short const
*>,class std::allocator<struct boost::sub_match<unsigned short const *>
> > & __thiscall std::vector<struct boost::sub_match<unsigned short
const *>,class std::allocator<struct boost::sub_match<unsigned short
const *> > >::operator=(class std::vector<struct
boost::sub_match<unsigned short const *>,class std::allocator<struct
boost::sub_match<unsigned short const *> > > const &)"
(??4?$vector_at_U?$sub_match_at_PBG@boost@@V?$allocator_at_U?$sub_match_at_PBG@boost@@@std@@@std@@QAEAAV01_at_ABV01@@Z)
1>libboost_regex-vc80-mt-gd-1_34_1.lib(instances.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)
1>libboost_regex-vc80-mt-gd-1_34_1.lib(usinstances.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<unsigned short const
*>,class std::allocator<struct boost::sub_match<unsigned short const *>
> >::~_Vector_val<struct boost::sub_match<unsigned short const *>,class
std::allocator<struct boost::sub_match<unsigned short const *> >
>(void)"
(??1?$_Vector_val_at_U?$sub_match_at_PBG@boost@@V?$allocator_at_U?$sub_match_at_PBG@boost@@@std@@@std@@QAE_at_XZ)
1>libboost_regex-vc80-mt-gd-1_34_1.lib(instances.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)
1>libboost_regex-vc80-mt-gd-1_34_1.lib(usinstances.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<unsigned
short const *>,class std::allocator<struct boost::sub_match<unsigned
short const *> > >::_Vector_val<struct boost::sub_match<unsigned short
const *>,class std::allocator<struct boost::sub_match<unsigned short
const *> > >(class std::allocator<struct boost::sub_match<unsigned short
const *> >)"
(??0?$_Vector_val_at_U?$sub_match_at_PBG@boost@@V?$allocator_at_U?$sub_match_at_PBG@boost@@@std@@@std@@IAE_at_V?$allocator_at_U?$sub_match_at_PBG@boost@@@1@@Z)
1>libboost_regex-vc80-mt-gd-1_34_1.lib(instances.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)
1>libboost_regex-vc80-mt-gd-1_34_1.lib(usinstances.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<unsigned short const *>,class std::allocator<struct
boost::sub_match<unsigned short const *> > >::swap(class
std::vector<struct boost::sub_match<unsigned short const *>,class
std::allocator<struct boost::sub_match<unsigned short const *> > > &)"
(?swap@?$vector_at_U?$sub_match_at_PBG@boost@@V?$allocator_at_U?$sub_match_at_PBG@boost@@@std@@@std@@QAEXAAV12@@Z)
1>libboost_regex-vc80-mt-gd-1_34_1.lib(instances.obj) : error LNK2001:
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)
1>libboost_regex-vc80-mt-gd-1_34_1.lib(usinstances.obj) : error LNK2019:
unresolved external symbol "__declspec(dllimport) public: class
std::_String_iterator<unsigned short,struct std::char_traits<unsigned
short>,class std::allocator<unsigned short> > __thiscall
std::basic_string<unsigned short,struct std::char_traits<unsigned
short>,class std::allocator<unsigned short> >::insert(class
std::_String_iterator<unsigned short,struct std::char_traits<unsigned
short>,class std::allocator<unsigned short> >,unsigned short)"
(__imp_?insert@?$basic_string_at_GU?$char_traits_at_G@std@@V?$allocator_at_G@2@@std@@QAE?AV?$_String_iterator_at_GU?$char_traits_at_G@std@@V?$allocator_at_G@2@@2_at_V32@G_at_Z)
referenced in function "public: struct boost::re_detail::re_syntax_base
* __thiscall boost::re_detail::basic_regex_creator<unsigned short,struct
boost::regex_traits<unsigned short,class
boost::w32_regex_traits<unsigned short> > >::append_set(class
boost::re_detail::basic_char_set<unsigned short,struct
boost::regex_traits<unsigned short,class
boost::w32_regex_traits<unsigned short> > > const &,struct
boost::mpl::bool_<0> *)"
(?append_set@?$basic_regex_creator_at_GU?$regex_traits_at_GV?$w32_regex_traits_at_G@boost@@@boost@@@re_detail_at_boost@@QAEPAUre_syntax_base_at_23@ABV?$basic_char_set_at_GU?$regex_traits_at_GV?$w32_regex_traits_at_G@boost@@@boost@@@23_at_PAU?$bool_@$0A@@mpl_at_3@@Z)
1>libboost_regex-vc80-mt-gd-1_34_1.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)
1>C:\Users\dad\Documents\Visual Studio
2008\Projects\example\Debug\example.exe : fatal error LNK1120: 6
unresolved externals
1>Build log was saved at "file://c:\Users\dad\Documents\Visual Studio
2008\Projects\example\example\Debug\BuildLog.htm"
1>example - 11 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========



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