Menu

undefined sysmbols in libcppunit.so

Help
Anonymous
2003-05-16
2003-05-22
  • Anonymous

    Anonymous - 2003-05-16

    Hi,

    I've compiled cppunit sources on solaris 2.6 with Workshop 5.2 compiler. And now compiling unit tests. All sources compile fine, but linker cribs for undefined symbols in libcppunit.so...

    void std::deque<CppUnit::Test*,std::allocator<CppUnit::Test*> >::__allocate_at_end() /Components/dev/CppUnit/v1.80/bin/SunOS.5.6_sparc_SunWS.5.2/libcppunit.so
    void __rwstd::__rb_tree<CppUnit::TestFactory*,CppUnit::TestFactory*,__rwstd::__ident<CppUnit::TestFactory*,CppUnit::TestFactory*>,std::less<CppUnit::TestFactory*>,std::allocator<CppUnit::TestFactory*> >::__deallocate_buffers() /Components/dev/CppUnit/v1.80/bin/SunOS.5.6_sparc_SunWS.5.2/libcppunit.so
    __rwstd::__rb_tree<CppUnit::Test*,std::pair<CppUnit::Test*const,CppUnit::TestFailure*>,__rwstd::__select1st<std::pair<CppUnit::Test*const,CppUnit::TestFailure*>,CppUnit::Test*>,std::less<CppUnit::Test*>,std::allocator<std::pair<CppUnit::Test*const,CppUnit::TestFailure*> > >::iterator __rwstd::__rb_tree<CppUnit::Test*,std::pair<CppUnit::Test*const,CppUnit::TestFailure*>,__rwstd::__select1st<std::pair<CppUnit::Test*const,CppUnit::TestFailure*>,CppUnit::Test*>,std::less<CppUnit::Test*>,std::allocator<std::pair<CppUnit::Test*const,CppUnit::TestFailure*> > >::find(CppUnit::Test*const&)const /Components/dev/CppUnit/v1.80/bin/SunOS.5.6_sparc_SunWS.5.2/libcppunit.so
    std::deque<CppUnit::Test*,std::allocator<CppUnit::Test*> >::~deque() /Components/dev/CppUnit/v1.80/bin/SunOS.5.6_sparc_SunWS.5.2/libcppunit.so

    any help.. as how to resolve this errors?

    Thanks,
    Kiran

     
    • Anonymous

      Anonymous - 2003-05-22

      I had got similar link errors on solaris 8 with WS6U2. Compiler 5.3.

      I ran configure script with following options and build and installed CPP unit after that.
      configure CXX=CC CXXFLAGS="-pta -instances=static -mt -xtarget=generic -g -features=no%transi
      tions -xildoff" LD=CC LDFLAGS=-xildoff

      Link error is gone with newly build CPP unit.

      Hope it works for you also.

      Refer to this link also. http://sourceforge.net/tracker/index.php?func=detail&aid=579016&group_id=11795&atid=311795

      Samir

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.