Boost logo

Boost Users :

Subject: Re: [Boost-users] [regex] link errors on 1.60 update
From: John Maddock (jz.maddock_at_[hidden])
Date: 2015-12-24 04:01:42


On 23/12/2015 22:36, James Walker wrote:
> When I tried to convert my project from Boost 1.58.0 to 1.60.0, I got
> some link errors. This is using Xcode 4.6.3 on Mac OS X 10.7.5. I'm
> compiling all the sources in libs/regex/src. Help?
>
> Undefined symbols for architecture i386:
> "boost::re_detail_106000::perl_matcher<char const*,
> std::allocator<boost::sub_match<char const*> >,
> boost::regex_traits<char, boost::cpp_regex_traits<char> >
> >::construct_init(boost::basic_regex<char, boost::regex_traits<char,
> boost::cpp_regex_traits<char> > > const&,
> boost::regex_constants::_match_flags)", referenced from:

My suspicion is that you are linking to the wrong version of
libboost_regex: from 1.60 onwards the symbols are all mangled with the
Boost version number so this is the error you get if you happened to
have say 1.58 still in your search path.

HTH, John.


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