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]
Other format: [Raw text]

RE: Archives that are built but not used.


I did a similar thing recently and didn't have any problems.  It sounds like
the linker isn't ever finding the file.  Is the library in the same
directory you are invoking the linker from?  If not is the path setup to the
library?  Another problem I experienced once with unresolved symbols had to
do with a couple of libraries having circular dependencies.  The solution
there was to group the library files so the linker would continue to search
them until all symbols were resolved.

Dennis

-----Original Message-----
From: crossgcc-owner@sources.redhat.com
[mailto:crossgcc-owner@sources.redhat.com]On Behalf Of Buddy Lott
Sent: Thursday, August 22, 2002 8:10 AM
To: crossgcc@sources.redhat.com
Subject: Archives that are built but not used.


After several days of trying to get a cygwin to M68k-coff cross-compiler
running, I finally succeeded. However, I just discovered that nothing I
put in an archive is used by the linker even though I include the
library on the command line.

I know this, because I get a whole mess load of unresolves. I used NM to
make sure the symbols were defined. With or without the archive I get
the same unresolves. When I compile all the .c files at the same time
(skipping the archive step), I do not get the same unresolves (I get
different ones due to the same problem).

Anyone have any clues as to why this may be happening?

Thanks,


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


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


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