public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* UEGENT: for Help!
@ 2003-01-08 16:04 Aiqun Du
  2003-01-08 16:28 ` Andrea 'fwyzard' Bocci
  0 siblings, 1 reply; 2+ messages in thread
From: Aiqun Du @ 2003-01-08 16:04 UTC (permalink / raw)
  To: gcc-help, gcc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: UEGENT: for Help!
  2003-01-08 16:04 UEGENT: for Help! Aiqun Du
@ 2003-01-08 16:28 ` Andrea 'fwyzard' Bocci
  0 siblings, 0 replies; 2+ messages in thread
From: Andrea 'fwyzard' Bocci @ 2003-01-08 16:28 UTC (permalink / raw)
  To: Aiqun Du; +Cc: gcc-help, gcc

At 10.57 08/01/2003 -0500, Aiqun Du wrote:
>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

Call your library "libmylib.a", and run gcc as following:
gcc foo.o bar.o -lmylib

>Thank you for your help.
>
>Alice

fwyzard 


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-08 16:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-08 16:04 UEGENT: for Help! Aiqun Du
2003-01-08 16:28 ` Andrea 'fwyzard' Bocci

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).