Re: [Boost-bugs] [Boost C++ Libraries] #12635: Strange undefined reference link errors for boost_regex

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12635: Strange undefined reference link errors for boost_regex
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-12-10 18:43:24


#12635: Strange undefined reference link errors for boost_regex
-------------------------------+-------------------------
  Reporter: shzhang@… | Owner: johnmaddock
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: regex
   Version: Boost 1.60.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+-------------------------

Comment (by johnmaddock):

 Sorry I was a bit short and harsh:

 * Boost has never supported binary compatibility between releases, if you
 compile against one versions headers and link to another versions .so
 file, bad stuff will happen somewhere down the road.
 * Recent Boost.Regex releases have enforced this by mangling their
 namespace with the Boost version number - the only difference from
 previous releases is that now you're prevented from shooting yourself in
 the foot quite so often ;)
 * If you just specify -lboost_regex on the command line, you will
 presumably link against whatever version was installed by the official
 system package. Use the "file" command to discover where
 libboost_regex.so points.
 * If you manually install a later version, or use a package someone has
 prepared, then there are a whole host of possible build options that are
 outside our control - in particular they may install the binaries in a
 location not searched by default (such as /usr/local/lib), but you will
 need to consult the package builders own documentation on this. You may
 also need to link against a specific version if the libboost_regex symlink
 has not been over-written.
 * If in doubt you can see what symbols are exported from a library with
 "nm -gC libraryname.so"

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12635#comment:5>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC