UEGENT: for Help!

Aiqun Du aiqun_du@hotmail.com
Wed Jan 8 16:56:00 GMT 2003


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



More information about the Gcc mailing list