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: 2017-01-03 03:24:00


#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 shaohua199@…):

 Hi,

 This problem is resolved.

 After I use "nm -gC libboost_regex.so" command to check my library, I find
 the
 0000000000051370 W
 boost::re_detail_106000::perl_matcher<boost::re_detail_106000::mapfile_iterator,
 '''stl'''::allocator<boost::sub_match<boost::re_detail_106000::mapfile_iterator>
>, 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)

 And my link error is:
 error: undefined reference to 'boost::re_detail_106000::perl_matcher<char
 const*, '''stlp_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)'

 So it is caused by my application use stlport library. After I re-compile
 boost library with "stdlib=stlport" option and specified "using stlport"
 in project-config.jam file, the link process is OK now.

 Thanks very much for your help.

 Thanks,
 Shaohua

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12635#comment:6>
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