g++ version 3.0.4

From: Yogesh Bhanu (yogesh@gsf.de)
Date: Wed Jul 03 2002 - 08:11:13 EDT


Hi admins,
            One of our programmers is following error at linking when he
tries to compile his program using g++ 3.0.4.
The system is Tru64 5.1a patch kit 2. Note that program does compile
with cxx 6.3008

The output is something like this .
#########################################################
g++ -I. -I. -g -O2 -g0 -O3 -c jwstring.cpp
g++ -g -O2 -g0 -O3 -o f3si f3si_prog.o jwstring.o
/usr/bin/ld:
jwstring.o: std::__default_alloc_template<true, 0>::_S_free_list :
weak symbol multiply defined
jwstring.o: std::__default_alloc_template<true,
0>::_S_node_allocator_lock : weak symbol multiply defined
jwstring.o: std::allocator<char>::~allocator(): weak symbol multiply defined
jwstring.o: std::string::_Alloc_hider::~_Alloc_hider(): weak symbol
multiply defined
jwstring.o: std::__default_alloc_template<true, 0>::deallocate(void*,
unsigned long): weak symbol multiply defined
jwstring.o: typeinfo for std::out_of_range: weak symbol multiply defined
jwstring.o: std::__default_alloc_template<true, 0>::_Lock::~_Lock():
weak symbol multiply defined

########################################

Any pointers to fix the linking problem.

Thanks in advance
yogesh



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:48:45 EDT