X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: "A. Sinan Unur" 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: 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" 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.