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

Re: [Condor-users] Linking problem with stdc++




I'm having the same problem (on Debian w/ gcc 3.4 or 4.x). It seems that condor_compile is forgetting some libraries, since the problem is cured by explicitly mentioning a couple of gcc's libraries in the link commnad.

Tomas


On 5/16/07, Richard O'Shaughnessy <oshaughn@xxxxxxxxxxxxxxxx> wrote:
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
_______________________________________________
Condor-users mailing list
To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
subject: Unsubscribe
You can also unsubscribe by visiting
https://lists.cs.wisc.edu/mailman/listinfo/condor-users

The archives can be found at either
https://lists.cs.wisc.edu/archive/condor-users/
http://www.opencondor.org/spaces/viewmailarchive.action?key=CONDOR