activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <>
Subject Re: Undefined symbols of building ActiveMQ-CPP with Sun CC5.8
Date Thu, 21 May 2009 15:39:55 GMT
On Thu, 2009-05-21 at 08:20 -0700, ymjzxw wrote:
> The was successfully built, but the executable file
> example was failed:
> Undefined                       first referenced
>  symbol                             in file
> std::smanip<int>::smanip(std::ios_base&(*)(std::ios_base&,int),int)
> ../main/.libs/
> std::smanip_fill<char,std::char_traits<char> >::smanip_fill(std::ios
> &(*)(std::ios &,char),char) ../main/.libs/
> int std::char_traits<char>::eof()   ../main/.libs/
> void std::__initialize<unsigned>(__type_0&,__type_0) 
> ../main/.libs/
> std::ostream &std::operator<<(std::ostream &,const char*)
> ../main/.libs/
> char std::ios::fill(char) ../main/.libs/
> int std::string::compare(const std::string &)const
> ../main/.libs/
> std::ostream &std::operator<<(std::ostream &,char)
> ../main/.libs/
> std::ios_base&std::swidth(std::ios_base&,int)
> ../main/.libs/
> std::string::basic_string(const std::allocator<char>&)
> ../main/.libs/
> int std::ios_base::setf(int,int)       ../main/.libs/
> ld: fatal: Symbol referencing errors. No output written to .libs/example
> PS: I added -library=stlport4  option when build and
> example.
> And the CC compiler version is Sun C++ 5.8 2005/10/13 (WS11)
> What's going on here? Did it mean I have an old or wrong CC compiler?
> Thanks

I'm not sure on the exact Sun Compilers that people have used to build
with, Sun compilers have always been a mystery to me.  It looks like the
code wasn't built with the stlport4 option, since you said its been
added then I'd make sure you did a clean build with it added.

The STLPort stuff should get added automatically buy the configure
script If you follow the recommendations on the FAQ page here:


Tim Bish

View raw message