This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: egcs-1.1.1, mips-sgi-irix6.2
- To: Matthias Abraham <matthias dot abraham at wolfson dot oxford dot ac dot uk>
- Subject: Re: egcs-1.1.1, mips-sgi-irix6.2
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 06 Dec 1998 01:42:10 -0200
- Cc: egcs at cygnus dot com
- References: <Pine.OSF.4.05.9812051627560.19236-100000@sable.ox.ac.uk>
On Dec 5, 1998, Matthias Abraham <matthias.abraham@wolfson.oxford.ac.uk> wrote:
> Then I wrote a little 'Hello World' C++ program. Compiling it using 'g++'
> resulted in the following linker error:
> g++ test.C
> ld: WARNING 84: /usr/local/lib/libstdc++.a is not used for resolving any
> symbol.
I assume you wrote your hello-world program using `printf', not
`cout<<', right? Otherwise, at least cout would have been imported
from libstdc++.
> ld: FATAL 9: I/O error (-lm): No such file or directory collect2: ld
> returned 32 exit status
Looks like the math library is missing for the default ABI (n32).
Isn't there a libm* in /usr/lib32?
AFAIK, libm was only required in the old days of libg++, because some
of the libg++ functionality needed functions from libm, and its
automatic inclusion could be dropped by now.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil