[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-users] Linking problem with stdc++



Hi all,

I have been trying to condor_compile a program that uses stdc++...it works fine on almost all my machines, but an installation of 6.8.4 has obvious link errors that suggest the std namespace isn't being properly resolved.

Can anyone suggest why this fails here, but works everywhere else?

(I've tried this with a few different compilers (g++, g++4, pathCC) and had the same issue with all of them.)

testparams.o(.text+0x37): In function `main':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
testparams.o(.text+0x43): In function `main':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
testparams.o(.text+0xb3): In function `main':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
testparams.o(.text+0x961): In function `main':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
testparams.o(.text+0x999): In function `main':
: undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
testparams.o(.text+0x9ba): In function `main':
: undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
testparams.o(.text+0x9e1): In function `main':
: undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::_Rep::_S_empty_rep_storage'
testparams.o(.text+0xa04): In function `main':
: undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
testparams.o(.text+0xa42): In function `main':
: undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
testparams.o(.text+0xa63): In function `main':
: undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
testparams.o(.text+0xa93): In function `main':
: undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
testparams.o(.text+0xaa3): In function `main':
: undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)' testparams.o(.text+0xac9): more undefined references to `__gnu_cxx::__exchange_and_add(int volatile*, int)' follow

....
utility-readkeys.o (.gnu.linkonce.t._ZNSt3mapISs10aParameterSt4lessISsESaISt4pairIKSsS0_EEE ixERS4_+0x2f3): In function `std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, aParameter, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, aParameter> > >::operator[](std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)': : undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'


This same code works