<html>
<body>
<font size=3>I'm trying to build my application with Visual Studio 2005
Beta 2 and I'm having the <br>
following horrilbe linking problems. I'm using Boost 1.32.0, which I've
rebuilt with <br>
VS2005 using the vc-8_0 tools option.<br>
The errors are in 2 groups, &quot;already defined&quot; and unresolved
external <br>
symbols.<br>
I don't get any errors or warnings with VS .Net 2003 7.1
compiler.<br><br>
Help!<br><br>
Thanks,<br>
Flavio.<br><br>
1&gt;Linking...<br><br>
1&gt;msvcprtd.lib(MSVCP80D.dll) : error LNK2005: &quot;class <br>
std::basic_ostream&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp;
__cdecl <br>
std::operator&lt;&lt;&lt;char,struct std::char_traits&lt;char&gt;,class
<br>
std::allocator&lt;char&gt; &gt;(class std::basic_ostream&lt;char,struct
<br>
std::char_traits&lt;char&gt; &gt; &amp;,class
std::basic_string&lt;char,struct <br>
std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const
&amp;)&quot; <br>
(<a href="mailto:??$?6DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z">
??$?6DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@0@AAV10@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@@Z</a>
) <br>
already defined in
libboost_serialization-vc71-mt-gd.lib(xml_oarchive.obj)<br><br>
1&gt;msvcprtd.lib(MSVCP80D.dll) : error LNK2005: &quot;class <br>
std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class <br>
std::allocator&lt;char&gt; &gt; __cdecl std::operator+&lt;char,struct
<br>
std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;(class
<br>
std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class <br>
std::allocator&lt;char&gt; &gt; const &amp;,char const *)&quot; <br>
(<a href="mailto:??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z">
??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@PBD@Z</a>
) <br>
already defined in
libboost_serialization-vc71-mt-gd.lib(xml_oarchive.obj)<br><br>
1&gt;msvcprtd.lib(MSVCP80D.dll) : error LNK2005: &quot;class <br>
std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class <br>
std::allocator&lt;char&gt; &gt; __cdecl std::operator+&lt;char,struct
<br>
std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;(class
<br>
std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class <br>
std::allocator&lt;char&gt; &gt; const &amp;,class
std::basic_string&lt;char,struct <br>
std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const
&amp;)&quot; <br>
(<a href="mailto:??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@0@Z">
??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@ABV10@0@Z</a>
) <br>
already defined in
libboost_serialization-vc71-mt-gd.lib(xml_oarchive.obj)<br><br>
1&gt;msvcprtd.lib(MSVCP80D.dll) : error LNK2005: &quot;class <br>
std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class <br>
std::allocator&lt;char&gt; &gt; __cdecl std::operator+&lt;char,struct
<br>
std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;(char
const *,class <br>
std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class <br>
std::allocator&lt;char&gt; &gt; const &amp;)&quot; <br>
(<a href="mailto:??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBDABV10@@Z">
??$?HDU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBDABV10@@Z</a>
) <br>
already defined in
libboost_serialization-vc71-mt-gd.lib(xml_oarchive.obj)<br><br>
1&gt;msvcprtd.lib(MSVCP80D.dll) : error LNK2005: &quot;public: __thiscall
<br>
std::allocator&lt;char&gt;::allocator&lt;char&gt;(void)&quot;
(<a href="mailto:??0?$allocator@D@std@@QAE@XZ">
??0?$allocator@D@std@@QAE@XZ</a>) <br>
already defined in <br>
libboost_serialization-vc71-mt-gd.lib(basic_text_oprimitive.obj)<br><br>
1&gt;msvcprtd.lib(MSVCP80D.dll) : error LNK2005: &quot;public: __thiscall
<br>
std::allocator&lt;char&gt;::allocator&lt;char&gt;(class
std::allocator&lt;char&gt; const &amp;)&quot; <br>
(<a href="mailto:??0?$allocator@D@std@@QAE@ABV01@@Z">
??0?$allocator@D@std@@QAE@ABV01@@Z</a>) already defined in <br>
libboost_serialization-vc71-mt-gd.lib(basic_text_oprimitive.obj)<br><br>
1&gt;msvcprtd.lib(MSVCP80D.dll) : error LNK2005: &quot;public: unsigned
int <br>
__thiscall std::allocator&lt;char&gt;::max_size(void)const &quot; <br>
(<a href="mailto:?max_size@?$allocator@D@std@@QBEIXZ">
?max_size@?$allocator@D@std@@QBEIXZ</a>) already defined in <br>
libboost_serialization-vc71-mt-gd.lib(basic_text_oprimitive.obj)<br><br>
1&gt;libboost_serialization-vc71-mt-gd.lib(basic_text_oprimitive.obj) :
warning <br>
LNK4217: locally defined symbol <br>
<a href="mailto:?_Addfac@_Locimp@locale@std@@AAEXPAVfacet@23@I@Z">
?_Addfac@_Locimp@locale@std@@AAEXPAVfacet@23@I@Z</a> (private: void
__thiscall <br>
std::locale::_Locimp::_Addfac(class std::locale::facet *,unsigned int))
<br>
imported in function &quot;public: __thiscall
std::locale::locale&lt;class <br>
boost::archive::codecvt_null&lt;char&gt; &gt;(class std::locale const
&amp;,class <br>
boost::archive::codecvt_null&lt;char&gt; *)&quot; <br>
(<a href="mailto:??$?0V?$codecvt_null@D@archive@boost@@@locale@std@@QAE@ABV01@PAV?$codecvt_null@D@archive@boost@@@Z">
??$?0V?$codecvt_null@D@archive@boost@@@locale@std@@QAE@ABV01@PAV?$codecvt_null@D@archive@boost@@@Z</a>
)<br><br>
1&gt;libboost_serialization-vc71-mt-gd.lib(basic_text_iprimitive.obj) :
warning <br>
LNK4049: locally defined symbol <br>
<a href="mailto:?_Addfac@_Locimp@locale@std@@AAEXPAVfacet@23@I@Z">
?_Addfac@_Locimp@locale@std@@AAEXPAVfacet@23@I@Z</a> (private: void
__thiscall <br>
std::locale::_Locimp::_Addfac(class std::locale::facet *,unsigned int))
<br>
imported<br><br>
1&gt;libboost_serialization-vc71-mt-gd.lib(basic_text_oprimitive.obj) :
warning <br>
LNK4217: locally defined symbol
<a href="mailto:??0_Locimp@locale@std@@AAE@ABV012@@Z">
??0_Locimp@locale@std@@AAE@ABV012@@Z</a> <br>
(private: __thiscall std::locale::_Locimp::_Locimp(class <br>
std::locale::_Locimp const &amp;)) imported in function &quot;public:
__thiscall <br>
std::locale::locale&lt;class boost::archive::codecvt_null&lt;char&gt;
&gt;(class <br>
std::locale const &amp;,class boost::archive::codecvt_null&lt;char&gt;
*)&quot; <br>
(<a href="mailto:??$?0V?$codecvt_null@D@archive@boost@@@locale@std@@QAE@ABV01@PAV?$codecvt_null@D@archive@boost@@@Z">
??$?0V?$codecvt_null@D@archive@boost@@@locale@std@@QAE@ABV01@PAV?$codecvt_null@D@archive@boost@@@Z</a>
)<br><br>
1&gt;libboost_serialization-vc71-mt-gd.lib(basic_text_iprimitive.obj) :
warning <br>
LNK4049: locally defined symbol
<a href="mailto:??0_Locimp@locale@std@@AAE@ABV012@@Z">
??0_Locimp@locale@std@@AAE@ABV012@@Z</a> <br>
(private: __thiscall std::locale::_Locimp::_Locimp(class <br>
std::locale::_Locimp const &amp;)) imported<br><br>
1&gt;libboost_serialization-vc71-mt-gd.lib(basic_text_oprimitive.obj) :
error <br>
LNK2019: unresolved external symbol
<a href="mailto:__imp_?_Xran@_String_base@std@@QBEXXZ">
__imp_?_Xran@_String_base@std@@QBEXXZ</a> <br>
referenced in function &quot;public: class
std::basic_string&lt;char,struct <br>
std::char_traits&lt;char&gt;,class std::_DebugHeapAllocator&lt;char&gt;
&gt; &amp; __thiscall <br>
std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class <br>
std::_DebugHeapAllocator&lt;char&gt; &gt;::assign(class
std::basic_string&lt;char,struct <br>
std::char_traits&lt;char&gt;,class std::_DebugHeapAllocator&lt;char&gt;
&gt; const <br>
&amp;,unsigned int,unsigned int)&quot; <br>
(<a href="mailto:?assign@?$basic_string@DU?$char_traits@D@std@@V?$_DebugHeapAllocator@D@2@@std@@QAEAAV12@ABV12@II@Z">
?assign@?$basic_string@DU?$char_traits@D@std@@V?$_DebugHeapAllocator@D@2@@std@@QAEAAV12@ABV12@II@Z</a>
)<br><br>
1&gt;libboost_serialization-vc71-mt-gd.lib(basic_text_iprimitive.obj) :
error <br>
LNK2001: unresolved external symbol
<a href="mailto:__imp_?_Xran@_String_base@std@@QBEXXZ">
__imp_?_Xran@_String_base@std@@QBEXXZ</a><br><br>
1&gt;libboost_serialization-vc71-mt-gd.lib(basic_text_oprimitive.obj) :
error <br>
LNK2019: unresolved external symbol
<a href="mailto:__imp_?_Xlen@_String_base@std@@QBEXXZ">
__imp_?_Xlen@_String_base@std@@QBEXXZ</a> <br>
referenced in function &quot;protected: bool __thiscall <br>
std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class <br>
std::_DebugHeapAllocator&lt;char&gt; &gt;::_Grow(unsigned int,bool)&quot;
<br>
(<a href="mailto:?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$_DebugHeapAllocator@D@2@@std@@IAE_NI_N@Z">
?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$_DebugHeapAllocator@D@2@@std@@IAE_NI_N@Z</a>
)<br><br>
1&gt;libboost_serialization-vc71-mt-gd.lib(basic_text_iprimitive.obj) :
error <br>
LNK2001: unresolved external symbol
<a href="mailto:__imp_?_Xlen@_String_base@std@@QBEXXZ">
__imp_?_Xlen@_String_base@std@@QBEXXZ</a><br><br>
1&gt;libboost_serialization-vc71-mt-gd.lib(xml_iarchive.obj) : error
LNK2019: <br>
unresolved external symbol <br>
<a href="mailto:__imp_?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@12@XZ">
__imp_?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@12@XZ</a>
 <br>
referenced in function &quot;protected: void __thiscall <br>
boost::archive::basic_xml_iarchive&lt;class <br>
boost::archive::xml_iarchive&gt;::load_end(char const *)&quot; <br>
(<a href="mailto:?load_end@?$basic_xml_iarchive@Vxml_iarchive@archive@boost@@@archive@boost@@IAEXPBD@Z">
?load_end@?$basic_xml_iarchive@Vxml_iarchive@archive@boost@@@archive@boost@@IAEXPBD@Z</a>
)<br><br>
1&gt;libboost_serialization-vc71-mt-gd.lib(xml_grammar.obj) : error
LNK2001: <br>
unresolved external symbol <br>
<a href="mailto:__imp_?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@12@XZ">
__imp_?begin@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@12@XZ</a>
<br><br>
1&gt;libboost_serialization-vc71-mt-gd.lib(xml_iarchive.obj) : error
LNK2019: <br>
unresolved external symbol <br>
<a href="mailto:__imp_?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@12@XZ">
__imp_?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@12@XZ</a>
 <br>
referenced in function &quot;protected: void __thiscall <br>
boost::archive::basic_xml_iarchive&lt;class <br>
boost::archive::xml_iarchive&gt;::load_end(char const *)&quot; <br>
(<a href="mailto:?load_end@?$basic_xml_iarchive@Vxml_iarchive@archive@boost@@@archive@boost@@IAEXPBD@Z">
?load_end@?$basic_xml_iarchive@Vxml_iarchive@archive@boost@@@archive@boost@@IAEXPBD@Z</a>
)<br><br>
1&gt;libboost_serialization-vc71-mt-gd.lib(xml_grammar.obj) : error
LNK2001: <br>
unresolved external symbol <br>
<a href="mailto:__imp_?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@12@XZ">
__imp_?end@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE?AViterator@12@XZ</a>
<br><br>
1&gt;libboost_serialization-vc71-mt-gd.lib(xml_grammar.obj) : error
LNK2019: <br>
unresolved external symbol <br>
<a href="mailto:__imp_?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@Vconst_iterator@12@0@Z">
__imp_?append@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEAAV12@Vconst_iterator@12@0@Z</a>
 <br>
referenced in function &quot;public: void __thiscall
boost::archive::`anonymous <br>
namespace'::append_string&lt;class std::basic_string&lt;char,struct <br>
std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;,class
<br>
std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class <br>
std::allocator&lt;char&gt; &gt;::const_iterator&gt;::operator()(class
<br>
std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class <br>
std::allocator&lt;char&gt; &gt;::const_iterator,class
std::basic_string&lt;char,struct <br>
std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt;
&gt;::const_iterator)const &quot; <br>
(<a href="mailto:??R?$append_string@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@Vconst_iterator@12@@?A0x6748d6fd@archive@boost@@QBEXVconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z">
??R?$append_string@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@Vconst_iterator@12@@?A0x6748d6fd@archive@boost@@QBEXVconst_iterator@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0@Z</a>
)<br><br>
</font></body>
</html>

