On Thu, 2009-05-21 at 08:20 -0700, ymjzxw wrote: > The libactivemq-cpp.so 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/libactivemq-cpp.so > std::smanip_fill<char,std::char_traits<char> >::smanip_fill(std::ios > &(*)(std::ios &,char),char) ../main/.libs/libactivemq-cpp.so > int std::char_traits<char>::eof() ../main/.libs/libactivemq-cpp.so > void std::__initialize<unsigned>(__type_0&,__type_0) > ../main/.libs/libactivemq-cpp.so > std::ostream &std::operator<<(std::ostream &,const char*) > ../main/.libs/libactivemq-cpp.so > char std::ios::fill(char) ../main/.libs/libactivemq-cpp.so > int std::string::compare(const std::string &)const > ../main/.libs/libactivemq-cpp.so > std::ostream &std::operator<<(std::ostream &,char) > ../main/.libs/libactivemq-cpp.so > std::ios_base&std::swidth(std::ios_base&,int) > ../main/.libs/libactivemq-cpp.so > std::string::basic_string(const std::allocator<char>&) > ../main/.libs/libactivemq-cpp.so > int std::ios_base::setf(int,int) ../main/.libs/libactivemq-cpp.so > ld: fatal: Symbol referencing errors. No output written to .libs/example > > > PS: I added -library=stlport4 option when build libactivemq-cpp.so 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: http://activemq.apache.org/cms/using-the-solaris-cc-compiler.html Regards Tim. -- Tim Bish http://fusesource.com http://timbish.blogspot.com/
