delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/11/16:36:27

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3C682E5A.C88B0DA4@phekda.freeserve.co.uk>
Date: Mon, 11 Feb 2002 20:49:30 +0000
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Re: Gcc -l
References: <20020211160140 DOT 36997 DOT qmail AT web20810 DOT mail DOT yahoo DOT com>
Reply-To: djgpp AT delorie DOT com

cesar tejeda wrote:
> 
>  --- jade <jade AT cdict DOT umcc DOT cu> escribió: > This line
> > gcc -l libsocket.a connect.c
> > gives me this message
> > c:/djgpp/bin/ld.exe cannot find -llibsocket.a
> > Why?
> >
> >
> 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

Regards,

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


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