This is the mail archive of the gcc-help@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]
Other format: [Raw text]

UEGENT: for Help!


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


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