delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/08/13:00:16

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "A. Sinan Unur" <asu1 AT cornell DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Gcc -l
Date: 8 Feb 2002 17:48:27 GMT
Organization: Cornell University
Lines: 20
Sender: asu1 AT cornell DOT invalid (on 132.236.44.16)
Message-ID: <Xns91AF8247E7D4Easu1cornelledu@132.236.56.8>
References: <001701c1b0cc$f62c9b60$6e0510ac AT et30>
NNTP-Posting-Host: 132.236.44.16
X-Trace: news01.cit.cornell.edu 1013190507 7577 132.236.44.16 (8 Feb 2002 17:48:27 GMT)
X-Complaints-To: usenet AT news01 DOT cit DOT cornell DOT edu
NNTP-Posting-Date: 8 Feb 2002 17:48:27 GMT
User-Agent: Xnews/L5
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"jade" <jade AT cdict DOT umcc DOT cu> wrote in news:001701c1b0cc$f62c9b60
$6e0510ac AT et30:

> This line
> gcc -l libsocket.a connect.c
> gives me this message
> c:/djgpp/bin/ld.exe cannot find -llibsocket.a
> Why?

first, if you want to link to with a library liblibrary.a using the -l 
option, you should use:

gcc -llibrary ...

which, in your case, becomes gcc -lsocket

Now, of course, you actually do have a library called libsocket.a in your 
library path, right?

Sinan.

- Raw text -


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