[cc-community] Issue while linking external library with Sun CC

Debarshi Sanyal debarshisanyal at gmail.com
Fri Apr 24 01:00:28 EDT 2009


Hi All,

I am trying to link a C++ application with an external dynamic library, say,
libExtObj.so on SunOS 5.8 using CC.

The link fails stating that some symbols in libExtObj.so cannot be resolved.
These symbols are all related to STL library like:

Undefined                       first referenced
 symbol                             in file

std::basic_string<char,std::char_traits<char>,std::allocator<char>
>&std::basic_string<char,std::char_traits<char>,std::allocator<char>
>::operator+=(const char*)                              libExtObj.so
std::basic_string<char,std::char_traits<char>,std::allocator<char>
>&std::basic_string<char,std::char_traits<char>,std::allocator<char>
>::operator+=(const char*)
unsigned long
std::basic_string<char,std::char_traits<char>,std::allocator<char>
>::size()const                 libExtObj.so


Normally, CC produces SunWS_cache/ to help it resolve symbols but this is
not available for external libraries.

I must be missing something.
Could you please help to solve this issue.


-- 
Regards,
Debarshi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ibiblio.org/pipermail/cc-community/attachments/20090424/cf3adfee/attachment.htm 


More information about the cc-community mailing list