Build the dll version of regex fails with vc-7_1-stlport

Since the stl library of vc7.1 has some bugs and insufficiency. I use stlport libray all the times. I compile regex library with stlport 4.62 and 5.0RC4, with or without the ICU. The dll all can not be compiled successfully! (In below I only describe the compile process with ICU.) First I try the stlport 4.62 with VC7.1 to build the library of regex, the script I use is(the icu is also compiled with the same stlport) : call "c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" set TOOLS=vc-7_1-stlport set STLPORT_PATH=c:\opt set STLPORT_4.62_PATH=C:\opt\STLport-4.6.2 set STLPORT_VERSION=4.6.2 set ICU_PATH=c:\opt\icu bjam "-sBUILD=debug release <runtime-link>dynamic <threading>multi <native-wchar_t>on" "-sICU_PATH=c:\opt\icu" --with-regex stage But the dll files can not be compiled successfully. The error occurs when linking(Attentions the exp and pdb files exists). vc-Link bin\boost\libs\regex\build\boost_regex.dll\vc-7_1-stlport\debug\native-wchar_t-on\threading-multi\boost_regex-vc71-mt-gdp-1_33.dll bin\boost\libs\regex\build\boost_regex.dll\vc-7_1-stlport\debug\native-wchar_t-on\threading-multi\boost_regex-vc71-mt-gdp-1_33.lib Creating library bin\boost\libs\regex\build\boost_regex.dll\vc-7_1-stlport\debug\native-wchar_t-on\threading-multi\boost_regex-vc71-mt-gdp-1_33.lib and object bin\boost\libs\regex\build\boost_regex.dll\vc-7_1-stlport\debug\native-wchar_t-on\threading-multi\boost_regex-vc71-mt-gdp-1_33.exp w32_regex_traits.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::~basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(void)" (__imp_??1?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@XZ) referenced in function "class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __cdecl boost::re_detail::w32_transform(unsigned long,unsigned short const *,unsigned short const *)" (?w32_transform@re_detail@boost@@YA?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@KPBG0@Z) wc_regex_traits.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::~basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(void)" (__imp_??1?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@XZ) usinstances.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::~basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(void)" (__imp_??1?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@XZ) w32_regex_traits.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(unsigned short const *,class _STL::allocator<unsigned short> const &)" (__imp_??0?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@PBGABV?$allocator@G@1@@Z) referenced in function "class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __cdecl boost::re_detail::w32_cat_get(class boost::shared_ptr<void> const &,unsigned long,int,class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &)" (?w32_cat_get@re_detail@boost@@YA?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@ABV?$shared_ptr@X@2@KHABV34@@Z) w32_regex_traits.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &)" (__imp_??0?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@ABV01@@Z) referenced in function "class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __cdecl boost::re_detail::w32_cat_get(class boost::shared_ptr<void> const &,unsigned long,int,class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &)" (?w32_cat_get@re_detail@boost@@YA?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@ABV?$shared_ptr@X@2@KHABV34@@Z) wc_regex_traits.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &)" (__imp_??0?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@ABV01@@Z) usinstances.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &)" (__imp_??0?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@ABV01@@Z) w32_regex_traits.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > & __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short>
::append(unsigned int,unsigned short)" (__imp_?append@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAEAAV12@IG@Z) referenced in function "class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __cdecl boost::re_detail::w32_transform(unsigned long,unsigned short const *,unsigned short const *)" (?w32_transform@re_detail@boost@@YA?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@KPBG0@Z) usinstances.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > & __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> ::append(unsigned int,unsigned short)" (__imp_?append@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAEAAV12@IG@Z) w32_regex_traits.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(void)" (__imp_??0?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@XZ) referenced in function "class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __cdecl boost::re_detail::w32_transform(unsigned long,unsigned short const *,unsigned short const *)" (?w32_transform@re_detail@boost@@YA?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@KPBG0@Z) usinstances.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(void)" (__imp_??0?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@XZ) w32_regex_traits.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::~_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(void)" (__imp_??1?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@XZ) referenced in function $L42681 wc_regex_traits.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::~_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(void)" (__imp_??1?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@XZ) usinstances.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::~_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(void)" (__imp_??1?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@XZ) w32_regex_traits.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > * __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> ::_Get_base(void)" (__imp_?_Get_base@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAEPAV?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@2@XZ) referenced in function "public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> ><unsigned short const *>(unsigned short const *,unsigned short const *,class _STL::allocator<unsigned short> const &)" (??$?0PBG@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@PBG0ABV?$allocator@G@1@@Z) wc_regex_traits.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > * __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> ::_Get_base(void)" (__imp_?_Get_base@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAEPAV?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@2@XZ) referenced in function "private: void __thiscall _STL::_Nondebug_string<wchar_t,class _STL::char_traits<wchar_t>,class _STL::allocator<wchar_t> >::_M_range_initialize<wchar_t const *>(wchar_t const *,wchar_t const *,struct _STL::forward_iterator_tag const &)" (??$_M_range_initialize@PB_W@?$_Nondebug_string@_WV?$char_traits@_W@_STL@@V?$allocator@_W@2@@_STL@@AAEXPB_W0ABUforward_iterator_tag@1@@Z) usinstances.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > * __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> ::_Get_base(void)" (__imp_?_Get_base@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAEPAV?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@2@XZ) w32_regex_traits.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::_String_base<unsigned short,class _STL::allocator<unsigned short> >::~_String_base<unsigned short,class _STL::allocator<unsigned short> >(void)" (__imp_??1?$_String_base@GV?$allocator@G@_STL@@@_STL@@QAE@XZ) referenced in function $L42777 wc_regex_traits.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::_String_base<unsigned short,class _STL::allocator<unsigned short> >::~_String_base<unsigned short,class _STL::allocator<unsigned short> >(void)" (__imp_??1?$_String_base@GV?$allocator@G@_STL@@@_STL@@QAE@XZ) usinstances.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::_String_base<unsigned short,class _STL::allocator<unsigned short> >::~_String_base<unsigned short,class _STL::allocator<unsigned short> >(void)" (__imp_??1?$_String_base@GV?$allocator@G@_STL@@@_STL@@QAE@XZ) w32_regex_traits.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::_String_base<unsigned short,class _STL::allocator<unsigned short> >::_String_base<unsigned short,class _STL::allocator<unsigned short> >(class _STL::allocator<unsigned short> const &)" (__imp_??0?$_String_base@GV?$allocator@G@_STL@@@_STL@@QAE@ABV?$allocator@G@1@@Z) referenced in function "public: __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> ><unsigned short const *>(unsigned short const *,unsigned short const *,class _STL::allocator<unsigned short> const &)" (??$?0PBG@?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@PBG0ABV?$allocator@G@1@@Z) wc_regex_traits.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::_String_base<unsigned short,class _STL::allocator<unsigned short> >::_String_base<unsigned short,class _STL::allocator<unsigned short> >(class _STL::allocator<unsigned short> const &)" (__imp_??0?$_String_base@GV?$allocator@G@_STL@@@_STL@@QAE@ABV?$allocator@G@1@@Z) usinstances.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::_String_base<unsigned short,class _STL::allocator<unsigned short> >::_String_base<unsigned short,class _STL::allocator<unsigned short> >(class _STL::allocator<unsigned short> const &)" (__imp_??0?$_String_base@GV?$allocator@G@_STL@@@_STL@@QAE@ABV?$allocator@G@1@@Z) w32_regex_traits.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) private: void __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::_M_terminate_string(void)" (__imp_?_M_terminate_string@?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@AAEXXZ) referenced in function "private: void __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::_M_range_initialize<unsigned short const *>(unsigned short const *,unsigned short const *,struct _STL::forward_iterator_tag const &)" (??$_M_range_initialize@PBG@?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@AAEXPBG0ABUforward_iterator_tag@1@@Z) wc_regex_traits.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::_M_terminate_string(void)" (__imp_?_M_terminate_string@?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@AAEXXZ) usinstances.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) private: void __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::_M_terminate_string(void)" (__imp_?_M_terminate_string@?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@AAEXXZ) w32_regex_traits.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall _STL::_String_base<unsigned short,class _STL::allocator<unsigned short> >::_M_allocate_block(unsigned int)" (__imp_?_M_allocate_block@?$_String_base@GV?$allocator@G@_STL@@@_STL@@QAEXI@Z) referenced in function "private: void __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::_M_range_initialize<unsigned short const *>(unsigned short const *,unsigned short const *,struct _STL::forward_iterator_tag const &)" (??$_M_range_initialize@PBG@?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@AAEXPBG0ABUforward_iterator_tag@1@@Z) wc_regex_traits.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall _STL::_String_base<unsigned short,class _STL::allocator<unsigned short> >::_M_allocate_block(unsigned int)" (__imp_?_M_allocate_block@?$_String_base@GV?$allocator@G@_STL@@@_STL@@QAEXI@Z) usinstances.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall _STL::_String_base<unsigned short,class _STL::allocator<unsigned short> >::_M_allocate_block(unsigned int)" (__imp_?_M_allocate_block@?$_String_base@GV?$allocator@G@_STL@@@_STL@@QAEXI@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::compare(class _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &)const " (__imp_?compare@?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QBEHABV12@@Z) referenced in function "public: int __cdecl boost::basic_regex<unsigned short,struct boost::regex_traits<unsigned short,class boost::w32_regex_traits<unsigned short> > >::compare(class boost::basic_regex<unsigned short,struct boost::regex_traits<unsigned short,class boost::w32_regex_traits<unsigned short> > > const &)const " (?compare@?$basic_regex@GU?$regex_traits@GV?$w32_regex_traits@G@boost@@@boost@@@boost@@QBAHABV12@@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > & __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> ::operator=(class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &)" (__imp_??4?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAEAAV01@ABV01@@Z) referenced in function "public: class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __thiscall boost::match_results<unsigned short const *,class _STL::allocator<struct boost::sub_match<unsigned short const *> > ::str(int)const " (?str@?$match_results@PBGV?$allocator@U?$sub_match@PBG@boost@@@_STL@@@boost@@QBE?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@H@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned int __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::size(void)const " (__imp_?size@?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QBEIXZ) referenced in function "public: class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __thiscall boost::match_results<unsigned short const *,class _STL::allocator<struct boost::sub_match<unsigned short const *> > ::format(class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &,enum boost::regex_constants::_match_flags)const " (?format@?$match_results@PBGV?$allocator@U?$sub_match@PBG@boost@@@_STL@@@boost@@QBE?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@ABV34@W4_match_flags@regex_constants@2@@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned short const * __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::data(void)const " (__imp_?data@?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QBEPBGXZ) referenced in function "public: class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __thiscall boost::match_results<unsigned short const *,class _STL::allocator<struct boost::sub_match<unsigned short const *> > ::format(class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &,enum boost::regex_constants::_match_flags)const " (?format@?$match_results@PBGV?$allocator@U?$sub_match@PBG@boost@@@_STL@@@boost@@QBE?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@ABV34@W4_match_flags@regex_constants@2@@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::reserve(unsigned int)" (__imp_?reserve@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAEXI@Z) referenced in function "public: class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __thiscall boost::sub_match<unsigned short const *>::str(void)const " (?str@?$sub_match@PBG@boost@@QBE?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@XZ) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(unsigned short const *,unsigned int,class _STL::allocator<unsigned short> const &)" (__imp_??0?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@PBGIABV?$allocator@G@1@@Z) referenced in function "public: class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __cdecl boost::re_detail::basic_regex_implementation<unsigned short,struct boost::regex_traits<unsigned short,class boost::w32_regex_traits<unsigned short> > >::str(void)const " (?str@?$basic_regex_implementation@GU?$regex_traits@GV?$w32_regex_traits@G@boost@@@boost@@@re_detail@boost@@QBA?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@XZ) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned short * __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::end(void)" (__imp_?end@?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAEPAGXZ) referenced in function "bool __cdecl _STL::_Dereferenceable<struct _STL::_DBG_iter<class _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> ,struct _STL::_Const_traits<unsigned short> > >(struct _STL::_DBG_iter<class _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> ,struct _STL::_Const_traits<unsigned short> >)" (??$_Dereferenceable@U?$_DBG_iter@V?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@U?$_Const_traits@G@2@@_STL@@@_STL@@YA_NU?$_DBG_iter@V?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@U?$_Const_traits@G@2@@0@@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned short * __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::begin(void)" (__imp_?begin@?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAEPAGXZ) referenced in function "bool __cdecl _STL::_Incrementable<struct _STL::_DBG_iter_base<class _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > > (struct _STL::_DBG_iter_base<class _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > > const &,int,struct _STL::random_access_iterator_tag const &)" (??$_Incrementable@U?$_DBG_iter_base@V?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@@_STL@@@_STL@@YA_NABU?$_DBG_iter_base@V?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@@0@HABUrandom_access_iterator_tag@0@@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct _STL::_DBG_iter<class _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >,struct _STL::_Nonconst_traits<unsigned short> > __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::begin(void)" (__imp_?begin@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE?AU?$_DBG_iter@V?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@U?$_Nonconst_traits@G@2@@2@XZ) referenced in function "public: unsigned long __thiscall boost::re_detail::w32_regex_traits_implementation<unsigned short>::lookup_classname(unsigned short const *,unsigned short const *)const " (?lookup_classname@?$w32_regex_traits_implementation@G@re_detail@boost@@QBEKPBG0@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned short & __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::operator[](unsigned int)" (__imp_??A?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAEAAGI@Z) referenced in function "public: unsigned long __thiscall boost::re_detail::w32_regex_traits_implementation<unsigned short>::lookup_classname(unsigned short const *,unsigned short const *)const " (?lookup_classname@?$w32_regex_traits_implementation@G@re_detail@boost@@QBEKPBG0@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > & __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> ::assign(unsigned int,unsigned short)" (__imp_?assign@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAEAAV12@IG@Z) referenced in function "unsigned short const * __cdecl boost::re_detail::re_is_set_member<unsigned short const *,unsigned short,struct boost::regex_traits<unsigned short,class boost::w32_regex_traits<unsigned short> >,unsigned long>(unsigned short const *,unsigned short const *,struct boost::re_detail::re_set_long<unsigned long> const *,struct boost::re_detail::regex_data<unsigned short,struct boost::regex_traits<unsigned short,class boost::w32_regex_traits<unsigned short> > > const &,bool)" (??$re_is_set_member@PBGGU?$regex_traits@GV?$w32_regex_traits@G@boost@@@boost@@K@re_detail@boost@@YAPBGPBG0PBU?$re_set_long@K@01@ABU?$regex_data@GU?$regex_traits@GV?$w32_regex_traits@G@boost@@@boost@@@01@_N@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::compare(unsigned short const *)const " (__imp_?compare@?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QBEHPBG@Z) referenced in function "int __cdecl boost::re_detail::string_compare<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> (class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &,unsigned short const *)" (??$string_compare@GV?$char_traits@G@_STL@@V?$allocator@G@2@@re_detail@boost@@YAHABV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@PBG@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: unsigned short const & __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::operator[](unsigned int)const " (__imp_??A?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QBEABGI@Z) referenced in function "int __cdecl boost::re_detail::string_compare<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> (class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &,unsigned short const *)" (??$string_compare@GV?$char_traits@G@_STL@@V?$allocator@G@2@@re_detail@boost@@YAHABV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@PBG@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::empty(void)const " (__imp_?empty@?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QBE_NXZ) referenced in function "int __cdecl boost::re_detail::string_compare<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> (class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &,unsigned short const *)" (??$string_compare@GV?$char_traits@G@_STL@@V?$allocator@G@2@@re_detail@boost@@YAHABV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@PBG@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(unsigned int,unsigned short,class _STL::allocator<unsigned short> const &)" (__imp_??0?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@IGABV?$allocator@G@1@@Z) referenced in function "public: class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __thiscall boost::re_detail::w32_regex_traits_implementation<unsigned short>::transform_primary(unsigned short const *,unsigned short const *)const " (?transform_primary@?$w32_regex_traits_implementation@G@re_detail@boost@@QBE?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@PBG0@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > & __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> ::erase(unsigned int,unsigned int)" (__imp_?erase@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAEAAV12@II@Z) referenced in function "public: class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __thiscall boost::re_detail::w32_regex_traits_implementation<unsigned short>::transform_primary(unsigned short const *,unsigned short const *)const " (?transform_primary@?$w32_regex_traits_implementation@G@re_detail@boost@@QBE?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@PBG0@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > & __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> ::assign(class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &)" (__imp_?assign@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAEAAV12@ABV12@@Z) referenced in function "public: class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __thiscall boost::re_detail::w32_regex_traits_implementation<unsigned short>::transform_primary(unsigned short const *,unsigned short const *)const " (?transform_primary@?$w32_regex_traits_implementation@G@re_detail@boost@@QBE?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@PBG0@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > & __thiscall _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> ::assign(unsigned short const *,unsigned short const *)" (__imp_?assign@?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAEAAV12@PBG0@Z) referenced in function "public: class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > & __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> ::assign<unsigned short const *>(unsigned short const *,unsigned short const *)" (??$assign@PBG@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAEAAV01@PBG0@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl _STL::operator<(class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &,class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &)" (__imp_??M_STL@@YA_NABV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@0@0@Z) referenced in function "public: bool __thiscall _STL::less<class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > >::operator()(class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &,class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &)const " (??R?$less@V?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@@_STL@@QBE_NABV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@1@0@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl _STL::operator>(class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &,class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &)" (__imp_??O_STL@@YA_NABV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@0@0@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@GU?$regex_traits@GV?$w32_regex_traits@G@boost@@@boost@@@re_detail@boost@@QAEPAUre_syntax_base@23@ABV?$basic_char_set@GU?$regex_traits@GV?$w32_regex_traits@G@boost@@@boost@@@23@PAU?$bool_@$0A@@mpl@3@@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct _STL::_DBG_iter<class _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >,struct _STL::_Nonconst_traits<unsigned short> > __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::insert(struct _STL::_DBG_iter<class _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> ,struct _STL::_Nonconst_traits<unsigned short> >,unsigned short)" (__imp_?insert@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE?AU?$_DBG_iter@V?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@U?$_Nonconst_traits@G@2@@2@U32@G@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@GU?$regex_traits@GV?$w32_regex_traits@G@boost@@@boost@@@re_detail@boost@@QAEPAUre_syntax_base@23@ABV?$basic_char_set@GU?$regex_traits@GV?$w32_regex_traits@G@boost@@@boost@@@23@PAU?$bool_@$0A@@mpl@3@@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: struct _STL::_DBG_iter<class _STL::_Nondebug_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >,struct _STL::_Nonconst_traits<unsigned short> > __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::end(void)" (__imp_?end@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE?AU?$_DBG_iter@V?$_Nondebug_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@U?$_Nonconst_traits@G@2@@2@XZ) 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@GU?$regex_traits@GV?$w32_regex_traits@G@boost@@@boost@@@re_detail@boost@@QAEPAUre_syntax_base@23@ABV?$basic_char_set@GU?$regex_traits@GV?$w32_regex_traits@G@boost@@@boost@@@23@PAU?$bool_@$0A@@mpl@3@@Z) usinstances.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) bool __cdecl _STL::operator==(class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &,unsigned short const *)" (__imp_??8_STL@@YA_NABV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@0@PBG@Z) referenced in function "unsigned int __cdecl boost::re_detail::find_sort_syntax<class boost::re_detail::w32_regex_traits_implementation<unsigned short>,unsigned short>(class boost::re_detail::w32_regex_traits_implementation<unsigned short> const *,unsigned short *)" (??$find_sort_syntax@V?$w32_regex_traits_implementation@G@re_detail@boost@@G@re_detail@boost@@YAIPBV?$w32_regex_traits_implementation@G@01@PAG@Z) bin\boost\libs\regex\build\boost_regex.dll\vc-7_1-stlport\debug\native-wchar_t-on\threading-multi\boost_regex-vc71-mt-gdp-1_33.dll : fatal error LNK1120: 34 unresolved externals
"link" /nologo /INCREMENTAL:NO /DEBUG /DLL /subsystem:console /out:"bin\boost\libs\regex\build\boost_regex.dll\vc-7_1-stlport\debug\native-wchar_t-on\threading-multi\boost_regex-vc71-mt-gdp-1_33.dll" /IMPLIB:"bin\boost\libs\regex\build\boost_regex.dll\vc-7_1-stlport\debug\native-wchar_t-on\threading-multi\boost_regex-vc71-mt-gdp-1_33.lib" /LIBPATH:"c:\opt\icu\lib" /LIBPATH:"c:\opt\STLport-4.6.2\lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio .NET 2003\VC7\lib" "icuuc.lib" "icuin.lib" "stlport_vc71_stldebug.lib" @"bin\boost\libs\regex\build\boost_regex.dll\vc-7_1-stlport\debug\native-wchar_t-on\threading-multi\boost_regex-vc71-mt-gdp-1_33.CMD" ...failed vc-Link bin\boost\libs\regex\build\boost_regex.dll\vc-7_1-stlport\debug\native-wchar_t-on\threading-multi\boost_regex-vc71-mt-gdp-1_33.dll bin\boost\libs\regex\build\boost_regex.dll\vc-7_1-stlport\debug\native-wchar_t-on\threading-multi\boost_regex-vc71-mt-gdp-1_33.lib... ...skipped <@boost!lib>boost_regex-vc71-mt-gdp-1_33.dll for lack of <@boost!libs!regex!build\boost_regex.dll\vc-7_1-stlport\debug\native-wchar_t-on\threading-multi>boost_regex-vc71-mt-gdp-1_33.dll... ...skipped <@boost!lib>boost_regex-vc71-mt-gdp-1_33.lib for lack of <@boost!libs!regex!build\boost_regex.dll\vc-7_1-stlport\debug\native-wchar_t-on\threading-multi>boost_regex-vc71-mt-gdp-1_33.lib... The release dll file compiles error are the similar. ==================================================================================================== Second I try the stlport 5.0RC4(icu are recompiled with this version), I find only the dll files compiling fails. call "c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" set TOOLS=vc-7_1-stlport set STLPORT_PATH=c:\opt set STLPORT_50_PATH=C:\opt\STLport set STLPORT_VERSION=5.0 set ICU_PATH=c:\opt\icu bjam "-sBUILD=debug release <runtime-link>dynamic <threading>multi <native-wchar_t>on" "-sICU_PATH=c:\opt\icu" --with-regex stage The error is : vc-Link bin\boost\libs\regex\build\boost_regex.dll\vc-7_1-stlport\debug\native-wchar_t-on\threading-multi\boost_regex-vc71-mt-gdp-1_33.dll bin\boost\libs\regex\build\boost_regex.dll\vc-7_1-stlport\debug\native-wchar_t-on\threading-multi\boost_regex-vc71-mt-gdp-1_33.lib LINK : fatal error LNK1181: cannot open input file 'stlport_vc71_stldebug.lib' vc-Link bin\boost\libs\regex\build\boost_regex.dll\vc-7_1-stlport\release\native-wchar_t-on\threading-multi\boost_regex-vc71-mt-p-1_33.dll bin\boost\libs\regex\build\boost_regex.dll\vc-7_1-stlport\release\native-wchar_t-on\threading-multi\boost_regex-vc71-mt-p-1_33.lib LINK : fatal error LNK1181: cannot open input file 'stlport_vc71.lib' But I find in stlport 5.0 the rule of library and dll file is changed. The files are : stlport_d50.dll, stlport_r50.dll, stlport_stld50.dll, stlport_d50.lib, stlport_r50.lib, stlport_stld50.lib, stlport_static_d50.lib, stlport_static_r50.lib, stlport_static_stld50.lib I also try copy stlport_d50.lib and stlport_r50.lib as stlport_vc71_stldebug.lib and stlport_vc71.lib, and the link is completed. So I am very surprise which tell the regex to link with stlport_vc71_stldebug.lib and stlport_vc71.lib, I think it may be the boost or bjam, not stlport. Since the stlport 5.0 will be released soon. I think it is a big bug.

Since the stl library of vc7.1 has some bugs and insufficiency. I use stlport libray all the times. I compile regex library with stlport 4.62 and 5.0RC4, with or without the ICU. The dll all can not be compiled successfully! (In below I only describe the compile process with ICU.)
First I try the stlport 4.62 with VC7.1 to build the library of regex, the script I use is(the icu is also compiled with the same stlport) : call "c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" set TOOLS=vc-7_1-stlport set STLPORT_PATH=c:\opt set STLPORT_4.62_PATH=C:\opt\STLport-4.6.2 set STLPORT_VERSION=4.6.2 set ICU_PATH=c:\opt\icu bjam "-sBUILD=debug release <runtime-link>dynamic <threading>multi <native-wchar_t>on" "-sICU_PATH=c:\opt\icu" --with-regex stage
But the dll files can not be compiled successfully. The error occurs when linking(Attentions the exp and pdb files exists).
All the errors seem to relate to wide-character functions, I believe if you omit the <native-wchar_t>on flag then it should build (it does for me). Or did you build STLport with /Zc:wchar_t ? If so it's possible we disabled support for <native-wchar_t>on in the Jamfile given that STLport doesn't normally support that.
But I find in stlport 5.0 the rule of library and dll file is changed. The files are : stlport_d50.dll, stlport_r50.dll, stlport_stld50.dll, stlport_d50.lib, stlport_r50.lib, stlport_stld50.lib, stlport_static_d50.lib, stlport_static_r50.lib, stlport_static_stld50.lib
I also try copy stlport_d50.lib and stlport_r50.lib as stlport_vc71_stldebug.lib and stlport_vc71.lib, and the link is completed. So I am very surprise which tell the regex to link with stlport_vc71_stldebug.lib and stlport_vc71.lib, I think it may be the boost or bjam, not stlport. Since the stlport 5.0 will be released soon. I think it is a big bug.
Not that big, I guess no-one has been testing with STLport 5 Beta, I'm sure bjam will support it once it's released. John.

I have compiled the stlport with "/Zc:wchar_t"(I also try /D "_MBCS" and /D"_UNICODE") since the library date_time need it when using stlported, switching "<native-wchar_t>on" and "<native-wchar_t>off" dll file compiling all fails. But I also try stlport without "/Zc:wchar_t", the dll file are compiled successfully. ----- Original Message ----- From: "John Maddock" <john@johnmaddock.co.uk> To: <boost-users@lists.boost.org> Sent: Friday, August 19, 2005 12:23 AM Subject: Re: [Boost-users] Build the dll version of regex failswithvc-7_1-stlport
Since the stl library of vc7.1 has some bugs and insufficiency. I use stlport libray all the times. I compile regex library with stlport 4.62 and 5.0RC4, with or without the ICU. The dll all can not be compiled successfully! (In below I only describe the compile process with ICU.)
First I try the stlport 4.62 with VC7.1 to build the library of regex, the script I use is(the icu is also compiled with the same stlport) : call "c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" set TOOLS=vc-7_1-stlport set STLPORT_PATH=c:\opt set STLPORT_4.62_PATH=C:\opt\STLport-4.6.2 set STLPORT_VERSION=4.6.2 set ICU_PATH=c:\opt\icu bjam "-sBUILD=debug release <runtime-link>dynamic <threading>multi <native-wchar_t>on" "-sICU_PATH=c:\opt\icu" --with-regex stage
But the dll files can not be compiled successfully. The error occurs when linking(Attentions the exp and pdb files exists).
All the errors seem to relate to wide-character functions, I believe if you omit the <native-wchar_t>on flag then it should build (it does for me). Or did you build STLport with /Zc:wchar_t ? If so it's possible we disabled support for <native-wchar_t>on in the Jamfile given that STLport doesn't normally support that.
But I find in stlport 5.0 the rule of library and dll file is changed. The files are : stlport_d50.dll, stlport_r50.dll, stlport_stld50.dll, stlport_d50.lib, stlport_r50.lib, stlport_stld50.lib, stlport_static_d50.lib, stlport_static_r50.lib, stlport_static_stld50.lib
I also try copy stlport_d50.lib and stlport_r50.lib as stlport_vc71_stldebug.lib and stlport_vc71.lib, and the link is completed. So I am very surprise which tell the regex to link with stlport_vc71_stldebug.lib and stlport_vc71.lib, I think it may be the boost or bjam, not stlport. Since the stlport 5.0 will be released soon. I think it is a big bug.
Not that big, I guess no-one has been testing with STLport 5 Beta, I'm sure bjam will support it once it's released.
John.
--------------------------------------------------------------------------------
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

I have compiled the stlport with "/Zc:wchar_t"(I also try /D "_MBCS" and /D"_UNICODE") since the library date_time need it when using stlported, switching "<native-wchar_t>on" and "<native-wchar_t>off" dll file compiling all fails.
OK I've been able to reproduce that with STLport-4.6.2, the following patch will let the regex dll build with STLport and /Zc:wchar_t. John. Index: boost/regex/config.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/regex/config.hpp,v retrieving revision 1.62 diff -r1.62 config.hpp 147c147 < #if defined(__cplusplus) && (defined(BOOST_MSVC) || defined(__ICL)) && !defined(BOOST_NO_INTRINSIC_WCHAR_T) && defined(BOOST_WINDOWS) ---
#if defined(__cplusplus) && (defined(BOOST_MSVC) || defined(__ICL)) && !define d(BOOST_NO_INTRINSIC_WCHAR_T) && defined(BOOST_WINDOWS) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)

Thanks a lot. The patch works. Now I have the dll library and can use them. ----- Original Message ----- From: "John Maddock" <john@johnmaddock.co.uk> To: <boost-users@lists.boost.org> Sent: Friday, August 19, 2005 8:03 PM Subject: Re: [Boost-users] Build the dll version ofregexfailswithvc-7_1-stlport
I have compiled the stlport with "/Zc:wchar_t"(I also try /D "_MBCS" and /D"_UNICODE") since the library date_time need it when using stlported, switching "<native-wchar_t>on" and "<native-wchar_t>off" dll file compiling all fails.
OK I've been able to reproduce that with STLport-4.6.2, the following patch will let the regex dll build with STLport and /Zc:wchar_t.
John.
Index: boost/regex/config.hpp =================================================================== RCS file: /cvsroot/boost/boost/boost/regex/config.hpp,v retrieving revision 1.62 diff -r1.62 config.hpp 147c147 < #if defined(__cplusplus) && (defined(BOOST_MSVC) || defined(__ICL)) && !defined(BOOST_NO_INTRINSIC_WCHAR_T) && defined(BOOST_WINDOWS) ---
#if defined(__cplusplus) && (defined(BOOST_MSVC) || defined(__ICL)) && !define d(BOOST_NO_INTRINSIC_WCHAR_T) && defined(BOOST_WINDOWS) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION)
--------------------------------------------------------------------------------
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

::_M_allocate_block(unsigned int)" (__imp_?_M_allocate_block@?$_String_base@GV?$allocator@G@_STL@@@_STL@@QAEXI@Z) referenced in function "private: void __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::_M_range_initialize<unsigned short const *>(unsigned short const *,unsigned short const *,struct _STL::forward_iterator_tag const &)" (??$_M_range_initialize@PBG@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@AAEXPBG0ABUforward_iterator_tag@1@@Z)
::~_String_base<unsigned short,class _STL::allocator<unsigned short> (void)" (__imp_??1?$_String_base@GV?$allocator@G@_STL@@@_STL@@QAE@XZ) referenced in function $L41388
::_String_base<unsigned short,class _STL::allocator<unsigned short> >(class _STL::allocator<unsigned short> const &)" (__imp_??0?$_String_base@GV?$allocator@G@_STL@@@_STL@@QAE@ABV?$allocator@G@1@@Z) referenced in function "public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> ><unsigned short const *>(unsigned short const *,unsigned short const *,class _STL::allocator<unsigned short> const &)" (??$?0PBG@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@PBG0ABV?$allocator@G@1@@Z)
The same configure(stlport compiled with /Zc:wchar_t, boost builded with <native-wchar_t>on) works fine with boost 1.32. I hope this error can be corrected, regex library is used so often in my code. The building dynamic library of regex "libboost_regex-vc71-mt-p-1_33.lib" can not be used correctly. I compile the demo code grep.cpp cl /MT /DBOOST_LIB_DIAGNOSTIC /EHsc grep.cpp (This compiling succeeds) cl /MD /DBOOST_LIB_DIAGNOSTIC /EHsc grep.cp (This compiling fails) The error is : libboost_regex-vc71-mt-p-1_33.lib(w32_regex_traits.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(unsigned short const *,class _STL::allocator<unsigned short> const &)" (__imp_??0?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@PBGABV?$allocator@G@1@@Z) referenced in function "class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __fastcall boost::re_detail::w32_cat_get(class boost::shared_ptr<void> const &,unsigned long,int,class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &)" (?w32_cat_get@re_detail@boost@@YI?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@ABV?$shared_ptr@X@2@KHABV34@@Z) libboost_regex-vc71-mt-p-1_33.lib(w32_regex_traits.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &)" (__imp_??0?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@ABV01@@Z) referenced in function "class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __fastcall boost::re_detail::w32_cat_get(class boost::shared_ptr<void> const &,unsigned long,int,class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > const &)" (?w32_cat_get@re_detail@boost@@YI?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@ABV?$shared_ptr@X@2@KHABV34@@Z) libboost_regex-vc71-mt-p-1_33.lib(w32_regex_traits.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall _STL::_String_base<unsigned short,class _STL::allocator<unsigned short> libboost_regex-vc71-mt-p-1_33.lib(w32_regex_traits.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::_String_base<unsigned short,class _STL::allocator<unsigned short> libboost_regex-vc71-mt-p-1_33.lib(w32_regex_traits.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::_String_base<unsigned short,class _STL::allocator<unsigned short> libboost_regex-vc71-mt-p-1_33.lib(w32_regex_traits.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::~basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(void)" (__imp_??1?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@XZ) referenced in function "class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __fastcall boost::re_detail::w32_transform(unsigned long,unsigned short const *,unsigned short const *)" (?w32_transform@re_detail@boost@@YI?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@KPBG0@Z) libboost_regex-vc71-mt-p-1_33.lib(w32_regex_traits.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > & __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::append(unsigned int,unsigned short)" (__imp_?append@?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAEAAV12@IG@Z) referenced in function "class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __fastcall boost::re_detail::w32_transform(unsigned long,unsigned short const *,unsigned short const *)" (?w32_transform@re_detail@boost@@YI?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@KPBG0@Z) libboost_regex-vc71-mt-p-1_33.lib(w32_regex_traits.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> >(void)" (__imp_??0?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@QAE@XZ) referenced in function "class _STL::basic_string<unsigned short,class _STL::char_traits<unsigned short>,class _STL::allocator<unsigned short> > __fastcall boost::re_detail::w32_transform(unsigned long,unsigned short const *,unsigned short const *)" (?w32_transform@re_detail@boost@@YI?AV?$basic_string@GV?$char_traits@G@_STL@@V?$allocator@G@2@@_STL@@KPBG0@Z) ----- Original Message ----- From: "John Maddock" <john@johnmaddock.co.uk> To: <boost-users@lists.boost.org> Sent: Friday, August 19, 2005 12:23 AM Subject: Re: [Boost-users] Build the dll version of regex failswithvc-7_1-stlport
Since the stl library of vc7.1 has some bugs and insufficiency. I use stlport libray all the times. I compile regex library with stlport 4.62 and 5.0RC4, with or without the ICU. The dll all can not be compiled successfully! (In below I only describe the compile process with ICU.)
First I try the stlport 4.62 with VC7.1 to build the library of regex, the script I use is(the icu is also compiled with the same stlport) : call "c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat" set TOOLS=vc-7_1-stlport set STLPORT_PATH=c:\opt set STLPORT_4.62_PATH=C:\opt\STLport-4.6.2 set STLPORT_VERSION=4.6.2 set ICU_PATH=c:\opt\icu bjam "-sBUILD=debug release <runtime-link>dynamic <threading>multi <native-wchar_t>on" "-sICU_PATH=c:\opt\icu" --with-regex stage
But the dll files can not be compiled successfully. The error occurs when linking(Attentions the exp and pdb files exists).
All the errors seem to relate to wide-character functions, I believe if you omit the <native-wchar_t>on flag then it should build (it does for me). Or did you build STLport with /Zc:wchar_t ? If so it's possible we disabled support for <native-wchar_t>on in the Jamfile given that STLport doesn't normally support that.
But I find in stlport 5.0 the rule of library and dll file is changed. The files are : stlport_d50.dll, stlport_r50.dll, stlport_stld50.dll, stlport_d50.lib, stlport_r50.lib, stlport_stld50.lib, stlport_static_d50.lib, stlport_static_r50.lib, stlport_static_stld50.lib
I also try copy stlport_d50.lib and stlport_r50.lib as stlport_vc71_stldebug.lib and stlport_vc71.lib, and the link is completed. So I am very surprise which tell the regex to link with stlport_vc71_stldebug.lib and stlport_vc71.lib, I think it may be the boost or bjam, not stlport. Since the stlport 5.0 will be released soon. I think it is a big bug.
Not that big, I guess no-one has been testing with STLport 5 Beta, I'm sure bjam will support it once it's released.
John.
--------------------------------------------------------------------------------
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
John Maddock
-
沈慧峰