trouble with linker
J. de Antonio
j_antonio@mtsa.com
Tue Apr 28 08:58:00 GMT 1998
Hi there,
I'm working with egcs-1.0.2 on a Solaris 2.5.1 INTEL workstation
When i try to instantiate the basic_string<> template (as the next
program does)
#include <string>
int main()
{
basic_string<int> s;
}
I get the next error message from the linker:
ld: warning: file /var/tmp/cca001FF1.o: relocation against external
symbol `basic_string<int, string_char_traits<int>,
__default_alloc_template<false, 0> >::nilRep'
from a non-allocatable section `.debug'
cannot be processed at runtime: relocation ignored
ld: warning: file /var/tmp/cca001FF1.o: relocation against external
symbol `basic_string<int, string_char_traits<int>,
__default_alloc_template<false, 0> >::nilRep'
from a non-allocatable section `.debug'
cannot be processed at runtime: relocation ignored
Undefined first referenced
symbol in file
__dl__Q2t12basic_string3ZiZt18string_char_traits1ZiZt24__default_alloc_template2b0i03RepPv
/var/tmp/cca001FF1.o
basic_string<int, string_char_traits<int>,
__default_alloc_template<false, 0> >::nilRep/var/tmp/cca001FF1.o
clone__Q2t12basic_string3ZiZt18string_char_traits1ZiZt24__default_alloc_template2b0i03Rep
/var/tmp/cca001FF1.o
ld: fatal: Symbol referencing errors. No output written to p3
collect2: ld returned 1 exit status
And its not the first trouble i have had with the linker.
I'm using the Sun ld v.2.0 because the GNU-ld does not compile on this
configuration (configure fails).
Can any user who works with a similar configuration guide me? There's
out
a precompiled version of the gld?
Thanks a lot.
---
Jordi de Antonio mailto:j_antonio@mtsa.com
More information about the Gcc-bugs
mailing list