I get the following errors and warnings: C:\Boost\include\boost-1_31\boost\regex\v4\perl_matcher_recursive.hpp(403): warning C4267: 'initializing' : conversion from 'size_t' to 'unsigned int', possible loss of data stlport_test error LNK2019: unresolved external symbol "public: __thiscall boost::reg_expression<char,class boost::regex_traits<char>,class _STL::allocator<char> >::reg_expression<char,class boost::regex_traits<char>,class _STL::allocator<char> >(char const *,unsigned int,class _STL::allocator<char> const &)" (??0?$reg_expression@DV?$regex_traits@D@boost@@V?$allocator@D@_STL@@@boost@@ QAE@PBDIABV?$allocator@D@_STL@@@Z) referenced in function "public: __thiscall boost::basic_regex<char,class boost::regex_traits<char>,class _STL::allocator<char> >::basic_regex<char,class boost::regex_traits<char>,class _STL::allocator<char> >(char const *,unsigned int,class _STL::allocator<char> const &)" (??0?$basic_regex@DV?$regex_traits@D@boost@@V?$allocator@D@_STL@@@boost@@QAE @PBDIABV?$allocator@D@_STL@@@Z) stlport_test error LNK2019: unresolved external symbol "public: __thiscall boost::reg_expression<char,class boost::regex_traits<char>,class _STL::allocator<char> >::~reg_expression<char,class boost::regex_traits<char>,class _STL::allocator<char> >(void)" (??1?$reg_expression@DV?$regex_traits@D@boost@@V?$allocator@D@_STL@@@boost@@ QAE@XZ) referenced in function "public: __thiscall boost::basic_regex<char,class boost::regex_traits<char>,class _STL::allocator<char> >::~basic_regex<char,class boost::regex_traits<char>,class _STL::allocator<char> >(void)" (??1?$basic_regex@DV?$regex_traits@D@boost@@V?$allocator@D@_STL@@@boost@@QAE @XZ) stlport_test error LNK2019: unresolved external symbol "void __fastcall boost::re_detail::raise_regex_exception(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &)" (?raise_regex_exception@re_detail@boost@@YIXABV?$basic_string@DV?$char_trait s@D@_STL@@V?$allocator@D@2@@_STL@@@Z) referenced in function "void __cdecl boost::re_detail::raise_error<class boost::regex_traits<char> >(class boost::regex_traits<char> const &,unsigned int)" (??$raise_error@V?$regex_traits@D@boost@@@re_detail@boost@@YAXABV?$regex_tra its@D@1@I@Z) stlport_test error LNK2019: unresolved external symbol "public: static class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > __fastcall boost::re_detail::w32_traits_base::error_string(unsigned int)" (?error_string@w32_traits_base@re_detail@boost@@SI?AV?$basic_string@DV?$char _traits@D@_STL@@V?$allocator@D@2@@_STL@@I@Z) referenced in function "void __cdecl boost::re_detail::raise_error<class boost::regex_traits<char>
(class boost::regex_traits<char> const &,unsigned int)" (??$raise_error@V?$regex_traits@D@boost@@@re_detail@boost@@YAXABV?$regex_tra its@D@1@I@Z) stlport_test error LNK2019: unresolved external symbol "protected: static bool __fastcall boost::reg_expression<char,class boost::regex_traits<char>,class _STL::allocator<char> ::can_start(char,unsigned char const *,unsigned char,struct boost::re_detail::_narrow_type const &)" (?can_start@?$reg_expression@DV?$regex_traits@D@boost@@V?$allocator@D@_STL@@ @boost@@KI_NDPBEEABU_narrow_type@re_detail@2@@Z) referenced in function "public: static bool __cdecl boost::re_detail::access_t<char,class boost::regex_traits<char>,class _STL::allocator<char> ::can_start(char,unsigned char const *,unsigned char)" (?can_start@?$access_t@DV?$regex_traits@D@boost@@V?$allocator@D@_STL@@@re_de tail@boost@@SA_NDPBEE@Z) stlport_test error LNK2019: unresolved external symbol "public: static void __fastcall boost::w32_regex_traits<char>::transform_primary(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > &,class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &)" (?transform_primary@?$w32_regex_traits@D@boost@@SIXAAV?$basic_string@DV?$cha r_traits@D@_STL@@V?$allocator@D@2@@_STL@@ABV34@@Z) referenced in function "char const * __fastcall boost::re_detail::re_is_set_member<char const *,char,class boost::regex_traits<char>,class _STL::allocator<char> >(char const *,char const *,struct boost::re_detail::re_set_long const *,class boost::reg_expression<char,class boost::regex_traits<char>,class _STL::allocator<char> > const &)" (??$re_is_set_member@PBDDV?$regex_traits@D@boost@@V?$allocator@D@_STL@@@re_d etail@boost@@YIPBDPBD0PBUre_set_long@01@ABV?$reg_expression@DV?$regex_traits @D@boost@@V?$allocator@D@_STL@@@1@@Z) stlport_test error LNK2019: unresolved external symbol "public: static void __fastcall boost::w32_regex_traits<char>::transform(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > &,class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> > const &)" (?transform@?$w32_regex_traits@D@boost@@SIXAAV?$basic_string@DV?$char_traits @D@_STL@@V?$allocator@D@2@@_STL@@ABV34@@Z) referenced in function "char const * __fastcall boost::re_detail::re_is_set_member<char const *,char,class boost::regex_traits<char>,class _STL::allocator<char> >(char const *,char const *,struct boost::re_detail::re_set_long const *,class boost::reg_expression<char,class boost::regex_traits<char>,class _STL::allocator<char> > const &)" (??$re_is_set_member@PBDDV?$regex_traits@D@boost@@V?$allocator@D@_STL@@@re_d etail@boost@@YIPBDPBD0PBUre_set_long@01@ABV?$reg_expression@DV?$regex_traits @D@boost@@V?$allocator@D@_STL@@@1@@Z) stlport_test fatal error LNK1120: 7 unresolved externals
Just to test that I compiled against stlport I took it out of the include path and I got this: stlport_test fatal error LNK1104: cannot open file 'libboost_regex-vc71-mt-1_31.lib' So it is built against stlport. About boost not being built against stlport because of a wrong STLPORT_PATH variable, that isn't possible as it is checked at build-time by bjam. The only other thing I can mention is that I also applied the boost-1.31.0-regex-patch-20040503.zip patch... Seeing as noone can fix this, can someone tell me of another regex package besides microsoft's atl? I'm looking for something more perl-like... ---------------------------------- Peace and love, Tweety mitea@sympatico.ca - tweety_04_01@users.sourceforge.net YahooID: tweety_04_01
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of John Maddock Sent: July 23, 2004 7:51 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] building boost on vc7.1 with stlport
Hmm... In all the tests I ran I think I forgot to remove that library (I was forcefully adding it for some reason). Now I'm exactly where I was at the beginning: when I compile my program I get these 2 linker errors:
Then I'm stuck 'cos it works for me, I'm attaching a small project that you should be able to build OK, if the libraries were correctly built.
Note: In debug mode you must select one of the multithreaded debug runtimes and define __STL_DEBUG, but you'll get a compile time error if you don't do that anyway. You can also define BOOST_LIB_DIAGNOSTIC to find out which lib file is being linked against. But my guess is that the lib's you built were not built against STLPort (incorrect STLPORT_PATH).
John.
************************************************************** *************** ** ** ** WARNING: This email contains an attachment of a very suspicious type. ** ** You are urged NOT to open this attachment unless you are absolutely ** ** sure it is legitmate. Opening this attachment may cause irreparable ** ** damage to your computer and your files. If you have any questions ** ** about the validity of this message, PLEASE SEEK HELP BEFORE OPENING IT. ** ** ** ************************************************************** ***************