#137 Build errors trying to compile CppUnit

1.10.2
open
nobody
5
2005-02-21
2005-02-21
Anonymous
No

trying to build CppUnit on DEC alpha platform:
gcc version 2.95.2 19991024

./configure CFLAGS=-O2 CXXFLAGS=-O2
was used to set up the environment and I get the following compilation error:

In file included from DllPlugInTester.cpp:17:
CommandLineParser.h:26: syntax error before `;'
DllPlugInTester.cpp: In function `bool runTests(const CommandLineParser &)':
DllPlugInTester.cpp:36: `PlugInManager' undeclared in namespace `CppUnit'
DllPlugInTester.cpp:36: parse error before `;'
DllPlugInTester.cpp:71: `plugInManager' undeclared (first use this function)
DllPlugInTester.cpp:71: (Each undeclared identifier is reported only once
DllPlugInTester.cpp:71: for each function it appears in.)
DllPlugInTester.cpp:71: `struct CommandLinePlugInInfo' has no member named `m_parameters'
DllPlugInTester.cpp: In function `int main(int, const char **)':
DllPlugInTester.cpp:243: parse error before `&'
DllPlugInTester.cpp:247: confused by earlier errors, bailing out

upon taking the advice of a previously filed bug I skip the building of the DLL plugin and instead get the following build issue
gcc -O2 -o .libs/simple ExampleTestCase.o Main.o ../../src/cppunit/.libs/libcppunit.so
/usr/bin/ld:
Unresolved:
basic_string<char, string_char_traits<char>, __default_alloc_template<false, 0> >::nilRep
__default_alloc_template<false, 0>::_S_free_list
__out_of_range(char const *)
__length_error(char const *)
__malloc_alloc_template<0>::__malloc_alloc_oom_handler
cerr
ostream::operator<<(char const *)
endl(ostream &)
__default_alloc_template<false, 0>::_S_end_free
__default_alloc_template<false, 0>::_S_start_free
__default_alloc_template<false, 0>::_S_heap_size
ios virtual table
strstreambase::ios virtual table
streambuf::streambuf(int)
strstreambuf virtual table
strstreambuf::init_dynamic(void *(*)(unsigned long), void (*)(void *), int)
streambuf::~streambuf(void)
ostream::ios virtual table
ostrstream::ios virtual table
ostream::operator<<(int)
strstreambuf::str(void)
strstreambuf::pcount(void)
ostrstream::~ostrstream(void)
ostream::operator<<(long)
ostrstream type_info node
ostrstream type_info function
collect2: ld returned 1 exit status

Any clues?

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks