delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/22/10:22:17

Message-Id: <m0xk41G-000S2bC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: Petr Mrazek <mrazek AT cas3 DOT zlin DOT vutbr DOT cz>, djgpp AT delorie DOT com
Date: Mon, 22 Dec 1997 12:24:45 +0000
MIME-Version: 1.0
Subject: Re: 2 and more libraries in one project
In-reply-to: <Pine.LNX.3.91.971222165522.737B-100000@cas3.zlin.vutbr.cz>

Petr Mrazek <mrazek AT cas3 DOT zlin DOT vutbr DOT cz> wrote:

> 2. But when I want to call foo1 from main and foo2 from foo1 linker says 
> "unresolved external foo2" or something like this.
> ( main -> foo1 -> foo2 )
> 
> All works fine when both foo1 and foo2 are in one library. 
> 
> Is it bug of linker?
Not, a limitation (a very hard one):

The order of the libs is important because ld is a one pass linker. Put the 
libraries in the right order (use Options|Libraries for that).

SET 
------------------------------------ 0 --------------------------------
Visit my home page: http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-sot AT usa DOT net - ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019