Mail Archives: djgpp/1996/08/13/19:01:20
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 -