Boost C++ Libraries: Ticket #25: duplicate symbol string_compare on Sun https://svn.boost.org/trac10/ticket/25 <pre class="wiki">Hi, this is Thomas Hampp (thampp@de.ibm.com) The Sun Workshop compiler (which uses Rouge Wave STL) will complain about a duplicate symbol string_compare during linkage. The reason is that the function string_compare in header boost/regex/detail/regex_match.hpp (only defined for Rouge Wave) is not declared inline. I have added the keyword inline to each function to make it work (see paste below) #ifndef _RWSTD_VER # define STR_COMP(s,p) s.compare (p) #else template &lt;class C, class T, class A&gt; inline int string_compare(const std::basic_string&lt;C,T,A&gt;&amp; s, const C* p) { return s.compare (p); } inline int string_compare(const std::string&amp; s, const char* p) { return std::strcmp(s.c_str(), p); } inline int string_compare(const std::wstring&amp; s, const wchar_t* p) { return std::wcscmp(s.c_str(), p); } # define STR_COMP(s,p) string_compare (s,p) #endif </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/25 Trac 1.4.3 John Maddock Thu, 06 Dec 2001 12:42:36 GMT status changed https://svn.boost.org/trac10/ticket/25#comment:1 https://svn.boost.org/trac10/ticket/25#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=14804 This has now been fixed in the cvs, thanks! </pre> Ticket