Subject: [Boost-bugs] [Boost C++ Libraries] #1083: boost_regex 1.34.0 uses ICU library without linking to it
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-07-09 08:18:11
#1083: boost_regex 1.34.0 uses ICU library without linking to it
-------------------------------+--------------------------------------------
Reporter: bero_at_[hidden] | Type: Bugs
Status: new | Milestone: To Be Determined
Component: Building Boost | Version:
Severity: Showstopper | Keywords:
-------------------------------+--------------------------------------------
g++ test.cpp -lboost_regex
results in
/usr/lib/libboost_regex.so: undefined reference to
`icu_3_4::Collator::createInstance(icu_3_4::Locale const&, UErrorCode&)'
/usr/lib/libboost_regex.so: undefined reference to
`icu_3_4::Locale::Locale()'
/usr/lib/libboost_regex.so: undefined reference to `u_tolower_3_4'
/usr/lib/libboost_regex.so: undefined reference to
`icu_3_4::Locale::~Locale()'
/usr/lib/libboost_regex.so: undefined reference to `u_isspace_3_4'
/usr/lib/libboost_regex.so: undefined reference to
`icu_3_4::Locale::Locale(icu_3_4::Locale const&)'
/usr/lib/libboost_regex.so: undefined reference to `u_isblank_3_4'
/usr/lib/libboost_regex.so: undefined reference to `u_digit_3_4'
/usr/lib/libboost_regex.so: undefined reference to `u_charType_3_4'
/usr/lib/libboost_regex.so: undefined reference to `u_charFromName_3_4'
Of course a simple workaround is to use
g++ test.cpp -lboost_regex -licu, but that linkage should really be in the
library itself, it makes using it easier and allows prelinking to work
correctly.
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1083>
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:49:56 UTC