|
Boost Users : |
Subject: Re: [Boost-users] [RegEx] Linking issues with boost 1.40.0 included directly in our tree
From: John Maddock (john_at_[hidden])
Date: 2009-11-03 04:52:16
> we use boost in our build, however, instead of using all of the
> Boost.Build and linking infrastructure, we integrate the source files
> directly into our build. We've always done things this way and had no
> problem. The implicit linking is a bit of a pain. However, now I have a
> strange issue.
>
> I am currently upgrading from 1.39.0 to 1.40.0, and am getting linking
> issues in the regex library. In particular, the linker is getting
> undefined references for boost::re_detail::perl_matcher in files where we
> create boost::regex and boost::regex_match objects. When I look
> through the source for the perl_matcher template, I can find it in the
> boost/regex/v4/perl_matcher.hpp include file, which we include within our
> build. I've also included the src/ and performance/ directories from
> boost/libs/regex in our build, and the linking still doesn't work.
Building this way shouldn't be an issue - I do it all the time - but to
recap the procedure is:
* Make sure either BOOST_ALL_NO_LIB or BOOST_REGEX_NO_LIB is #defined when
building.
* Add the .cpp files in libs/regex/src to your build project, and make sure
that they're built with the same options as the rest of your app.
Any chance your project is still referencing the .cpp or .obj files from
1.39 or some such?
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