This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 2.95.1 static string won't compile on SCO-OSR5
- To: + + <wrobbie@my-Deja.com>
- Subject: Re: GCC 2.95.1 static string won't compile on SCO-OSR5
- From: Robert Lipe <robertlipe@usa.net>
- Date: Thu, 9 Sep 1999 10:09:57 -0500
- Cc: egcs@egcs.cygnus.com
- References: <MGAMFKJBJNKKGAAA@my-deja.com>
This is a known (sigh) problem with current g++ and essentially all
the System V linkers. THey differ in their interpretation of .weak.
The solution on most systems is to use GNU ld. Unfortunately, GNU ld
doesn't support OSR5 well enough to be an acceptable substutute.
But the good news is that other than templates, things work OK. :-(
RJL
> Which is no problem using EGCS 1.1.1 on the same machine. GCC 2.95.1 won't
> do it however:
>
> ----------
> [ildev2] /usr/rob> /usr/local/gcc-2.95.1/bin/g++ test.cc
> /usr/local/gcc-2.95.1/lib/gcc-lib/i586-pc-
> sco3.2v5.0.0/2.95.1/libstdc++.a(cstrmain.o): fatal error: symbol `__as__t12basic_string3ZcZt18string_char_traits1ZcZt24__default_alloc_tem
> plate2b0i0PCc` multiply-defined, also in file /usr/tmp/cc4lMcjd.o
> collect2: ld returned 1 exit status [ildev2] /usr/rob> ----------