Boost logo

Boost Users :

From: tweety (mitea_at_[hidden])
Date: 2004-07-16 16:18:24


I finally compiled the whole thing (by enabling wchar_t builtin support...)
and I ran into the same problem I had before: when I try to USE the regex
class in my code I get the following 2 linker errors:

html to mhtml.obj : 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_at_DV?$regex_traits_at_D@boost@@V?$allocator_at_D@_STL@@@boost@@
QAE_at_PBDIABV?$allocator_at_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_at_DV?$regex_traits_at_D@boost@@V?$allocator_at_D@_STL@@@boost@@QAE
@PBDIABV?$allocator_at_D@_STL@@@Z)
html to mhtml.obj : 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_at_DV?$regex_traits_at_D@boost@@V?$allocator_at_D@_STL@@@boost@@
QAE_at_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_at_DV?$regex_traits_at_D@boost@@V?$allocator_at_D@_STL@@@boost@@QAE
@XZ)

Do I have to link manually to something? I thought that's already done in
the headers...
(and I'm still curious as to how one should build boost in vc7.1 with
stlport. Maybe someone should make a faq or something...)

----------------------------------
Peace and love,
Tweety
mitea_at_[hidden] - tweety_04_01_at_[hidden]
YahooID: tweety_04_01

> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of John Maddock
> Sent: July 16, 2004 6:51 AM
> To: boost-users_at_[hidden]
> 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


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