This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
UEGENT: for Help!
- From: "Aiqun Du" <aiqun_du at hotmail dot com>
- To: gcc-help at gcc dot gnu dot org, gcc at gcc dot gnu dot org
- Date: Wed, 08 Jan 2003 10:57:47 -0500
- Subject: UEGENT: for Help!
- Bcc:
Hi,
I'm using GCC 3.2 (powerpc64-linux-gcc). I have several .o and a mylib.a
library file (created using ar, on .o that are compiled using same gcc). I
run following command to try to link them together:
gcc foo.o bar.o --library=mylib.a
I got this error:
bar.o: In function `.RTAS_debug':
bar.o(.text+0x3c): undefined reference to `.rtas_call'
rtas_call is a function defined in the .o that should have been included in
mylib.a.
Looks like the mylib.a didn't get picked up by gcc linker.
Have I run the gcc command correctly? Do you have any idea where went wrong?
Thank you for your help.
Alice
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail