
Ok, I used bjam this time, and after I cleaned the binaries, I ran: bjam -sTOOLS="vc7.1-stlport" -sBUILD="<native-wchar_t>off" All ok until I got to the dreaded regex part where I got both compiler AND link errors: vc-C++ bin\boost\libs\regex\build\boost_regex.dll\vc7.1-stlport\debug\winstances .obj winstances.cpp vc-Link bin\boost\libs\regex\build\boost_regex.dll\vc7.1-stlport\debug\boost_reg ex-vc71-mt-gdp-1_31.dll bin\boost\libs\regex\build\boost_regex.dll\vc7.1-stlport \debug\boost_regex-vc71-mt-gdp-1_31.lib Creating library bin\boost\libs\regex\build\boost_regex.dll\vc7.1-stlport\deb ug\boost_regex-vc71-mt-gdp-1_31.lib and object bin\boost\libs\regex\build\boost_ regex.dll\vc7.1-stlport\debug\boost_regex-vc71-mt-gdp-1_31.exp instances.obj : error LNK2001: unresolved external symbol "private: unsigned int __cdecl boost::cpp_regex_traits<wchar_t>::do_syntax_type(unsigned int)const " ( ?do_syntax_type@?$cpp_regex_traits@_W@boost@@ABAII@Z) winstances.obj : error LNK2001: unresolved external symbol "private: unsigned in t __cdecl boost::cpp_regex_traits<wchar_t>::do_syntax_type(unsigned int)const " (?do_syntax_type@?$cpp_regex_traits@_W@boost@@ABAII@Z) regex.obj : error LNK2001: unresolved external symbol "private: unsigned int __c decl boost::cpp_regex_traits<wchar_t>::do_syntax_type(unsigned int)const " (?do_ syntax_type@?$cpp_regex_traits@_W@boost@@ABAII@Z) regex_debug.obj : error LNK2019: unresolved external symbol "private: unsigned i nt __cdecl boost::cpp_regex_traits<wchar_t>::do_syntax_type(unsigned int)const " (?do_syntax_type@?$cpp_regex_traits@_W@boost@@ABAII@Z) referenced in function " void __cdecl regex_lib_print_compiler_macros(void)" (?regex_lib_print_compiler_m acros@@YAXXZ) w32_regex_traits.obj : error LNK2001: unresolved external symbol "private: unsig ned int __cdecl boost::cpp_regex_traits<wchar_t>::do_syntax_type(unsigned int)co nst " (?do_syntax_type@?$cpp_regex_traits@_W@boost@@ABAII@Z) wide_posix_api.obj : error LNK2001: unresolved external symbol "private: unsigne d int __cdecl boost::cpp_regex_traits<wchar_t>::do_syntax_type(unsigned int)cons t " (?do_syntax_type@?$cpp_regex_traits@_W@boost@@ABAII@Z) c_regex_traits.obj : error LNK2019: unresolved external symbol "private: unsigne d int __cdecl boost::cpp_regex_traits<wchar_t>::do_syntax_type(unsigned int)cons t " (?do_syntax_type@?$cpp_regex_traits@_W@boost@@ABAII@Z) referenced in functio n "public: unsigned int __cdecl boost::cpp_regex_traits<wchar_t>::syntax_type(un signed int)const " (?syntax_type@?$cpp_regex_traits@_W@boost@@QBAII@Z) c_regex_traits_common.obj : error LNK2001: unresolved external symbol "private: unsigned int __cdecl boost::cpp_regex_traits<wchar_t>::do_syntax_type(unsigned i nt)const " (?do_syntax_type@?$cpp_regex_traits@_W@boost@@ABAII@Z) cregex.obj : error LNK2001: unresolved external symbol "private: unsigned int __ cdecl boost::cpp_regex_traits<wchar_t>::do_syntax_type(unsigned int)const " (?do _syntax_type@?$cpp_regex_traits@_W@boost@@ABAII@Z) posix_api.obj : error LNK2001: unresolved external symbol "private: unsigned int __cdecl boost::cpp_regex_traits<wchar_t>::do_syntax_type(unsigned int)const " ( ?do_syntax_type@?$cpp_regex_traits@_W@boost@@ABAII@Z) bin\boost\libs\regex\build\boost_regex.dll\vc7.1-stlport\debug\boost_regex-v c71- mt-gdp-1_31.dll : fatal error LNK1120: 1 unresolved externals "link" /nologo /INCREMENTAL:NO /DEBUG /DLL /subsystem:console /out:"bin\ boost\libs\regex\build\boost_regex.dll\vc7.1-stlport\debug\boost_regex-vc71- mt-g dp-1_31.dll" /IMPLIB:"bin\boost\libs\regex\build\boost_regex.dll\vc7.1-stlport\ debug\boost_regex-vc71-mt-gdp-1_31.lib" /LIBPATH:"C:\Marius\VC++\libs\stlport- 4.6.2\STLport-4.6\lib" /LIBPATH:"C:\Program Files\Microsoft Visual Studio .NET 2 003\VC7\lib" @"bin\boost\libs\regex\build\boost_regex.dll\vc7.1-stlport\debug\ boost_regex-vc71-mt-gdp-1_31.CMD" ...failed vc-Link bin\boost\libs\regex\build\boost_regex.dll\vc7.1-stlport\debug \boost_regex-vc71-mt-gdp-1_31.dll bin\boost\libs\regex\build\boost_regex.dll\vc7 .1-stlport\debug\boost_regex-vc71-mt-gdp-1_31.lib... If you get that makefile fixed, please send it to me. For now all my interest in boost is the regex class and it doesn't even compile... ---------------------------------- 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 16, 2004 6:51 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] building boost on vc7.1 with stlport
i first compiled (succesfully) stlport 4.6.2. then i ran "bjam "-sTOOLS=vc7.1-stlport" install" and it failed compiling the regex library. then i manually went to the libs\regex\build folder and ran "nmake /f vc7.1-stlport clean install" and it compiled the first thing ok and the 2nd time around threw a LOT of linker errors (well, only ~49, but they're stl-style-long :D). I set correctly the STLPORT_VERSION and the STLPORT_PATH env vars, the tools were loaded ok, the INCLUDE env var had stlport's include dir first... AND IT COMPILED OK the first one... here's a screenshot of the last page of errors. please help me...
I think this is a problem with mis-matched /Zc:wchar_t options - Boost is normally built with that flag on, while STLPort is normally built with it off. Depending on how you intend to build your own code, either rebuild STLPort with /Zc:wchar_t or use:
bjam -sTOOLS=vc7.1-stlport -sBUILD="<native-wchar_t>off"
In fact this is the default setting, and having double checked it works for me without having to mess with the BUILD variable, have you changed something else somewhere? I can reproduce the makefile problem though, I'll get that fixed.
John.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users