This is the mail archive of the crossgcc@sourceware.org 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: gcc linking problem w/ static libs ?


On Fri, 2006-02-24 11:03:58 +0100, Enrico Weigelt <weigelt@metux.de> wrote:
> I'm currently experiencing some problems with gcc and static 
> libraries: coda links its tools by calling the c++ command,
> instead of calling ld directly. 
> 
> The problem: (some ?) symbols of an imported library (passed 
> directly by filename) cannot be resolved. I added some of the
> objects contained in the .a to the parameters and now the 
> symbols can be found, but are also warned as duplicated.
[...]
> Does anyone know of this problem ?

Maybe start by submitting a helpful error description? Something like

This Coda command linking a program fails with unresolved symbols:

	c++ -o xxx a1.o a2.o foo.a bar.a

Though the symbols are there:

	nm a1.o
	nm a2.o
	nm foo.a
	nm bar.a

MfG, JBG

-- 
Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481             _ O _
"Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg  _ _ O
 fÃr einen Freien Staat voll Freier BÃrger"  | im Internet! |   im Irak!   O O O
ret = do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA));

Attachment: signature.asc
Description: Digital signature


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