This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

RE: linux x powerpc-eabi link problem


>-----Original Message-----
>From: Marc Schafer [mailto:mschafer@avidyne.com]
>Sent: 09 August 2001 20:26

>I am working with a MPC555 board from Intec.  I took some utility
>functions for the 555 from a different compiler environment 
>and compiled
>them into an archive to link my small test app against.  Unfortunately,
>when I get to the link step, I get a bunch of undefined 
>reference errors
>for all the functions in the archive.
>
>I used nm and objdump to look at the archive and all the symbols are in
>there.  I am running ld in verbose mode so I can see that it is
>successfully finding the archive.  Why can't it find any of 
>the symbols.

  Is it possible that just running ranlib over the archive will fix
your problems ?

  Or is it possible that you've got the order of the files wrong on your
ld command line ?  The archive needs to be last.

        DaveK
-- 
" So far, science's crowning achievement, the Atomic Bomb, has not even
been able to alleviate the misery and torture of endless centuries of
world poverty." - George Hammond, self-proclaimed discoverer of the 
scientific proof of god.


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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