Link error compiling with g++3.4.3

Paul Tai paul.tai@teampcs.com
Tue May 10 00:41:00 GMT 2005


The code compiles fine with g++3.2.3 but fails when recompiling with 3.4.3
(Redhat Linux upgrade). This is the output of the 'make': 
Linking balance_refresher ...
../../lib/libinmateutil.a(DbUpdateBilledPartyWorkingBal.o)(.gnu.linkonce.t._
ZNSt14__simple_allocISsSt24__default_alloc_templateILb1ELi0EEE10deallocateEP
Ssj+0x1a): In function `std::__simple_alloc<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::__default_alloc_template<true, 0> >::deallocate(std::basic_string<char,
std::char_traits<char>, std::allocator<char> >*, unsigned int)':
: undefined reference to `std::__default_alloc_template<true,
0>::deallocate(void*, unsigned int)'
../../lib/libinmateutil.a(DbUpdateBilledPartyWorkingBal.o)(.gnu.linkonce.t._
ZNSt14__simple_allocISsSt24__default_alloc_templateILb1ELi0EEE8allocateEj+0x
1e): In function `std::__simple_alloc<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::__default_alloc_template<true, 0> >::allocate(unsigned int)':
: undefined reference to `std::__default_alloc_template<true,
0>::allocate(unsigned int)'
collect2: ld returned 1 exit status
make: *** [balance_refresher] Error 1
Can anyone please help? Thanks. 
Paul.



More information about the Gcc-help mailing list