X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Date: Tue, 12 Feb 2002 10:34:36 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Richard Dawe cc: djgpp AT delorie DOT com Subject: Re: Gcc -l In-Reply-To: <3C682E5A.C88B0DA4@phekda.freeserve.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Mon, 11 Feb 2002, Richard Dawe wrote: > > and if you try gcc -lsocket.a connect.c? > > That won't work, because the linker will look for libsocket.a.a. You probably > want this: > > gcc -lsocket connect.c Actually, I'd suggest "gcc connect.c -lsocket" (one-pass linker, remember?).