www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/13/19:01:20

Xref: news2.mv.net comp.os.msdos.djgpp:7210
From: lehmann AT mathematik DOT th-darmstadt DOT de (Alexander Lehmann)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: .OBJ vs .O (was re:RHIDE and DJGPP)
Date: 13 Aug 1996 21:03:45 GMT
Organization: Technische Hochschule Darmstadt
Lines: 20
Message-ID: <4uqqjh$ceg@rs18.hrz.th-darmstadt.de>
References: <199608131727 DOT VAA07673 AT video DOT yars DOT free DOT net> <1996Aug13 DOT 215431 AT uctvms DOT uct DOT ac DOT za>
NNTP-Posting-Host: fb0404.mathematik.th-darmstadt.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

stwand07 AT uctvms DOT uct DOT ac DOT za wrote:

: I remember someone saying that if you say "gcc myprog.o mylib.a" the
: linker doesn't exclude routines in 'mylib' that aren't used. To do
: this one must use the "-l" option. (eg. "gcc myprog.o -lmy" to link
: libmy.a).

No, that is independent of whether you use -l or not (the main reason
to use -l is to have the linker find the libs in different search dirs
and to get references to shared libraries right (but that's not an
issue with DJGPP, of course)). 


bye, Alexander

-- 
Alexander Lehmann,                                  |  "On the Internet,
alex AT hal DOT rhein-main DOT de  (plain, MIME, NeXT)         |   nobody knows
lehmann AT mathematik DOT th-darmstadt DOT de (plain)          |   you're a dog."
<URL:http://www.mathematik.th-darmstadt.de/~lehmann/>

- Raw text -


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