This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

egcs-1.1.1, mips-sgi-irix6.2


Dear Sir/Madam,

Yesterday I downloaded the complete egcs-1.1.1 archive. The
configure/build/test/install steps gave no problems.

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.

ld: FATAL 9: I/O error (-lm): No such file or directory collect2: ld 
returned 32 exit status

Could you help me resolving this problem?

By the way, compiling the program using
'gcc test.C /usr/local/lib/libstdc++.a' works fine (it just produces a
very large executable of about 600KB). Do I always have to specify the
standard C++ library as a command line option? I thought this would be
done automatically as for the stdclib.

Do I need to install another 'ld'? The GNU binutils do not supply the 'ld'
for my platform.

Thank you for your help in advance.

Regards

Matthias Abraham.

=============================================
Matthias Abraham

University of Oxford, Department of Materials
Parks Road
Oxford
OX1 3PH

e-mail: matthias.abraham@materials.ox.ac.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]