Thread: [Cppunit-devel] CPP-Unit Need Help.
Brought to you by:
blep
From: samir m. <sam...@ya...> - 2003-05-16 15:00:26
|
Hi All, I have build and installed CPP unit 1.8.0 on Solaris 8 using WS6U2. I tried running test program mentioned in cook book. Compilation goes fine. I am getting error when linking to libcppunit file. I have run through the postings in news forum, but did not find any solution for this. Exact error message is attached at the end. Can you please help me with this problem ?? Best Regards, Samir <288 bhavani /dps/deepakg> CC -v -I/usr/CPP-Unit/include -o testCPPUnit -lc -ldl -lnsl -lmp -lcppunit -L/opt/SUNWspro/WS6U2/lib/rw7 -library=rwtools7,iostream testCPPUnit.cpp ### command line files and options (expanded): ### -v -I/usr/CPP-Unit/include -o testCPPUnit -lc -ldl -lnsl -lmp -lcppunit -L/opt/SUNWspro/WS6U2/lib/rw7 testCPPUnit.cpp -library=rwtools7,iostream ### CC: Note: LM_LICENSE_FILE = 1726@narmada:/etc/opt/licenses/licenses_combined ### CC: Note: NLSPATH = /opt/SUNWspro/bin/../WS6U2/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/SUNWspro/bin/../WS6U2/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat /opt/SUNWspro/bin/../WS6U2/bin/ccfe -y-o -ytestCPPUnit.o -I/usr/CPP-Unit/include -y-fbe -y/opt/SUNWspro/bin/../WS6U2/bin/fbe -y-xarch=generic -y-verbose -O0 -ptf /tmp/05791%1.%2 -ptx /opt/SUNWspro/bin/../WS6U2/bin/CC -ptk "-v -I/usr/CPP-Unit/include -library=rwtools7,iostream -xs " -D__SunOS_5_8 -D__SUNPRO_CC=0x530 -Dunix -Dsun -Dsparc -D__sparc -D__unix -D__sun -D__BUILTIN_VA_ARG_INCR -D__SVR4 -D__SUNPRO_CC_COMPAT=5 -y-s -I-xbuiltin -I/opt/SUNWspro/WS6U2/include/CCios -instlib=/opt/SUNWspro/WS6U2/lib/libCstd.a -I/opt/SUNWspro/WS6U2/include/CC/Cstd -I/opt/SUNWspro/WS6U2/include/CC -I/opt/SUNWspro/WS6U2/include/CC/rw7 -I/opt/SUNWspro/WS6U2/include/cc -D__SUN_PREFETCH testCPPUnit.cpp -s /tmp/ccfe.05791.0.s rm /tmp/ccfe.05791.0.s /opt/SUNWspro/bin/../WS6U2/bin/CClink -ptk "-v -I/usr/CPP-Unit/include -library=rwtools7,iostream -xs -xildoff " -ptx /opt/SUNWspro/bin/../WS6U2/bin/CC -lc -ldl -lnsl -lmp -lcppunit -L/opt/SUNWspro/WS6U2/lib/rw7 testCPPUnit.o -o testCPPUnit ### CC: Note: LD_LIBRARY_PATH = /usr/CPP-Unit/lib:/usr/lib:/usr/g/lib:/usr/g/mergecom/mc3lib:/usr/SYBASE/lib ### CC: Note: LD_RUN_PATH = (null) ### CC: Note: LD_OPTIONS = (null) /usr/ccs/bin/ld -u __1cH__CimplKcplus_init6F_v_ -R/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib:/opt/SUNWspro/lib:/usr/ccs/lib:/usr/lib -o testCPPUnit /opt/SUNWspro/WS6U2/lib/crti.o /opt/SUNWspro/WS6U2/lib/CCrti.o /opt/SUNWspro/WS6U2/lib/crt1.o /opt/SUNWspro/WS6U2/lib/values-xa.o -Y P,/opt/SUNWspro/lib/rw7:/opt/SUNWspro/lib:/opt/SUNWspro/WS6U2/lib/rw7:/opt/SUNWspro/WS6U2/lib:/usr/ccs/lib:/usr/lib -lc -ldl -lnsl -lmp -lcppunit -L/opt/SUNWspro/WS6U2/lib/rw7 testCPPUnit.o -lrwtool -liostream -lCstd -lCrun -lm -lw -lcx -lc /opt/SUNWspro/WS6U2/lib/CCrtn.o /opt/SUNWspro/WS6U2/lib/crtn.o >&/tmp/ld.05794.0.err /opt/SUNWspro/bin/../WS6U2/bin/c++filt -stderr </tmp/ld.05794.0.err Undefined first referenced symbol in file void std::deque<CppUnit::Test*,std::allocator<CppUnit::Test*> >::__allocate_at_end() /usr/CPP-Unit/lib/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() /usr/CPP-Unit/lib/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 /usr/CPP-Unit/lib/libcppunit.so std::deque<CppUnit::Test*,std::allocator<CppUnit::Test*> >::~deque() /usr/CPP-Unit/lib/libcppunit.so __type_0 std::find<std::deque<CppUnit::TestListener*,std::allocator<CppUnit::TestListener*> >::iterator,CppUnit::TestListener*>(__type_0,__type_0,const __type_1&) /usr/CPP-Unit/lib/libcppunit.so std::deque<CppUnit::TestListener*,std::allocator<CppUnit::TestListener*> >::~deque() /usr/CPP-Unit/lib/libcppunit.so unsigned __rwstd::__rb_tree<CppUnit::TestFactory*,CppUnit::TestFactory*,__rwstd::__ident<CppUnit::TestFactory*,CppUnit::TestFactory*>,std::less<CppUnit::TestFactory*>,std::allocator<CppUnit::TestFactory*> >::count(CppUnit::TestFactory*const&)const /usr/CPP-Unit/lib/libcppunit.so void std::deque<std::pair<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >, __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |
From: Michael F. <mfe...@ob...> - 2003-05-17 18:29:41
|
sm> Hi All, sm> I have build and installed CPP unit 1.8.0 on Solaris 8 sm> using WS6U2. I haven't been using it on Solaris. Anyone else have an idea? Michael Feathers |
From: Baptiste L. <gai...@fr...> - 2003-05-20 19:06:53
|
You need the lastest snapshot of cppunit (1.9.11). Then compile using the following configure: configure CXX=CC CXXFLAGS="-pta -instances=static -mt -xtarget=generic -g -features=no%transi tions -xildoff" LD=CC LDFLAGS=-xildoff Baptiste. ----- Original Message ----- From: "Michael Feathers" <mfe...@ob...> To: "samir mewada" <sam...@ya...> Cc: <som...@gm...>; <lac...@al...>; <je...@gm...>; <gai...@fr...>; <bas...@li...>; <sm...@so...>; <cpp...@li...> Sent: Saturday, May 17, 2003 8:29 PM Subject: [Cppunit-devel] Re: CPP-Unit Need Help. > > sm> Hi All, > > sm> I have build and installed CPP unit 1.8.0 on Solaris 8 > sm> using WS6U2. > > I haven't been using it on Solaris. Anyone else have an idea? > > Michael Feathers > > > > ------------------------------------------------------- > This SF.net email is sponsored by: If flattening out C++ or Java > code to make your application fit in a relational database is painful, > don't do it! Check out ObjectStore. Now part of Progress Software. > http://www.objectstore.net/sourceforge > _______________________________________________ > Cppunit-devel mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppunit-devel > |
From: Jerome L. (Frisurf) <lac...@fr...> - 2003-05-18 11:53:35
|
On Fri, 2003-05-16 at 17:00, samir mewada wrote: > Hi All, > > I have build and installed CPP unit 1.8.0 on Solaris 8 > using WS6U2. Samir, I didn't work with c++ programs for years now, but the error message seems to indicate that the a STL symbol is missing at link time. perhaps do you need to add a -L/path/to/your/stl or -LnameSTLlib Or perhaps this is by default in this version of the compiler... Otherwise perhaps could you look at http://130.15.168.200/faqs/SUNWspro/WS6U2/lib/locale/C/html/mr/READMEs/c++_faq.html They describe a way to switch STL libraries, in case the problem was coming from Sun's implementation. As a side note, when I used to work on Unix with C++ programs, I always tried to use 2 compilers (e.g. gcc). Error messages are different from compiler to compiler and some are better than others and help to debug faster. Cheers, & Good luck J. -- Jerome Lacoste (Frisurf) <lac...@fr...> CoffeeBreaks |