I was able to compile the libcppunit.a and .so libraries.
But when I try to use them (e.g. with the make check or
my own test program), I get STL related link errors. Any
ideas? I'm compiling with the Sun Workshop compiler
version 6.2.
One of several examples:
ild: (undefined symbol)
std::deque<CppUnit::TestFailure*,std::allocator<CppUnit:
:TestFailure*> >::iterator
std::deque<CppUnit::TestFailure*,std::allocator<CppUnit:
:TestFailure*> >::erase
(std::deque<CppUnit::TestFailure*,std::allocator<CppUnit
::TestFailure*>
>::iterator,std::deque<CppUnit::TestFailure*,std::allocato
r<CppUnit::TestFailure*> >::iterator) -- referenced
in ../../src/cppunit/.libs/libcppunit.so
My environment:
CC=/SUNWspro/6.2/bin/CC
CXX=/SUNWspro/6.2/bin/CC
I also tried adding the Cstd lib, but did not work.
Any help would be greatly appreciated.
Thanks in advance,
Jeff Wise
Jeffrey_Wise@hotmail.com
Logged In: NO
Somehow I missed mr_rohan's follow-up to dianehowe's
earlier question. Anyway, you can ignore this question due
to user error.
Thanks,
Jeff
Date: 2002-11-24 19:32
Sender: mr_rohan
Logged In: YES
user_id=651057
I was able to get CppUnit working by doing this -
./configure CC="CC" CXX="CC" LD="CC"
LDFLAGS="-
xildoff" CXXFLAGS="-mt -g -pta -instances=static
-xildoff"
I then linked against -libcppunit but the shared library should
work too.