delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/10/07/06:46:30

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
From: "Gerrit P. Haase" <gp AT familiehaase DOT de>
Organization: Esse keine toten Tiere
To: <cygwin AT cygwin DOT com>
Date: Sun, 7 Oct 2001 12:47:24 +0200
MIME-Version: 1.0
Subject: Re: Newbie Q on socket programming on Cygwin
Reply-to: cygwin AT cygwin DOT com
Message-ID: <3BC04EDC.15466.230137F1@localhost>
In-reply-to: <Pine.GSO.4.31.0110070039030.27445-100000@ux5.cso.uiuc.edu>
X-mailer: Pegasus Mail for Win32 (v3.12cDE)
X-Hops: 1
X-Sender: 320081107336-0001 AT t-dialin DOT net

seung-won hwang schrieb am 2001-10-07, 0:39:

>Hello,
>
>I tried to compile HTTP client code in C in Cygwin.. but -lsocket -lnsl
>flags give me errors in compilation.
>
>> gcc -o wc wc.c -lsocket -lnsl

Try:
gcc -o wc wc.c

>/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/../../../../i686-pc-cygwin/bin/ld:
>cann
>ot find -lsocket
>collect2: ld returned 1 exit status
>
>Any comment on dealing with this problem would be very helpful to me.
>Thanks in advance!

Gerrit


-- 
=^..^=

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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