www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/20/04:15:26

Date: Mon, 20 Jul 1998 11:13:56 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: George Foot <george DOT foot AT merton DOT oxford DOT ac DOT uk>
cc: Richard Lanyon <rlanyon AT plato DOT wadham DOT ox DOT ac DOT uk>, djgpp AT delorie DOT com
Subject: Re: Undefined reference to `main'
In-Reply-To: <199807191925.UAA02094@sable.ox.ac.uk>
Message-ID: <Pine.SUN.3.91.980720111337.3059C-100000@is>
MIME-Version: 1.0

On Sun, 19 Jul 1998, George Foot wrote:

> You can pass the library's filename as if it were an object file -- I 
> think in this case the linker will link in the whole library, though, 
> not just the components you wanted to use.

No, it won't.  Using the -lfoo switch has exactly the same effect as
if you mention libfoo.a at the same place in the command line.  It
just saves some typing and honors back-compatibility, that's all.

- Raw text -


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