[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Questions about static linking



On Wed, Jun 9, 2010 at 1:18 PM, Miro Kropacek <miro.kropacek@gmail.com> wrote:
>> lib1.a needs zlib
>> lib2.a needs zlib
>>
>> projectX needs lib1 and lib2,
>> would the resulting code contain dublicate code for zlib?
> Of course not :) In that way you could have duplicate symbols with no
> problem, don't you think? :)
Now I realize, I gave you a little bit confusing answer -- lib1 and
lib2 doesn't 'contain' libz -- it just references libz. So in the end,
you need to do something like projectX -l1 -l2 -lz to make it work.


-- 
MiKRO / Mystic Bytes
http://mikro.atari.org