Boost C++ Libraries: Ticket #1083: boost_regex 1.34.0 uses ICU library without linking to it https://svn.boost.org/trac10/ticket/1083 <p> g++ test.cpp -lboost_regex </p> <p> results in </p> <p> /usr/lib/libboost_regex.so: undefined reference to `icu_3_4::Collator::createInstance(icu_3_4::Locale const&amp;, UErrorCode&amp;)' /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&amp;)' /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' </p> <p> Of course a simple workaround is to use </p> <p> 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. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1083 Trac 1.4.3 bero@… Mon, 09 Jul 2007 10:23:46 GMT attachment set https://svn.boost.org/trac10/ticket/1083 https://svn.boost.org/trac10/ticket/1083 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-regex-link-icuuc.patch</span> </li> </ul> <p> This (obviously incorrect because it assumes icu lives in /usr/lib) patch fixes it for me - maybe it can give a hint on what's going wrong. </p> Ticket René Rivera Mon, 09 Jul 2007 13:38:03 GMT component, severity changed; owner, version set https://svn.boost.org/trac10/ticket/1083#comment:1 https://svn.boost.org/trac10/ticket/1083#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">John Maddock</span> </li> <li><strong>version</strong> → <span class="trac-field-new">release 1.34.0</span> </li> <li><strong>component</strong> <span class="trac-field-old">Building Boost</span> → <span class="trac-field-new">regex</span> </li> <li><strong>severity</strong> <span class="trac-field-old">Showstopper</span> → <span class="trac-field-new">Problem</span> </li> </ul> Ticket John Maddock Sat, 25 Aug 2007 09:18:19 GMT <link>https://svn.boost.org/trac10/ticket/1083#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1083#comment:2</guid> <description> <p> If you run the build Jamfile with the -d2 option you should see something like "-licui18n -licuuc" added to the link command line, is this not enough? </p> <p> John. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Tue, 11 Dec 2007 17:32:13 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1083#comment:3 https://svn.boost.org/trac10/ticket/1083#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">worksforme</span> </li> </ul> <p> Please reopen if you can provide more info: this works for me OK as is. </p> Ticket