Date: Mon, 20 Jul 1998 11:13:56 +0300 (IDT) From: Eli Zaretskii To: George Foot cc: Richard Lanyon , djgpp AT delorie DOT com Subject: Re: Undefined reference to `main' In-Reply-To: <199807191925.UAA02094@sable.ox.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.