Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <416CDE86.8F58B329@dessent.net>
Date: Wed, 13 Oct 2004 00:51:34 -0700
From: Brian Dessent <brian@dessent.net>
Organization: My own little world...
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: other services ok, ftp not (was 1.5.11 - tcp problems)
References: <4745850620.20040921112624@scenta.co.uk> <416B3A95.4010506@hq.astra.ph> <Pine.GSO.4.61.0410121150090.24643@slinky.cs.nyu.edu> <416C92BD.90100@hq.astra.ph> <416CC006.3D4ECDEF@dessent.net> <416CC105.B1C945CA@dessent.net> <416CCCB8.4040200@hq.astra.ph>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes
Reply-To: cygwin@cygwin.com

Carlo Florendo wrote:

> >Correction: add "-lws2_32" to the gcc options.
>
> Oh, thank you.  I've actually done it and my previous post actually
> shows the output of the executable compiled with
> 
> gcc -mno-cygwin -lws2_32  getservbyname-mingw.c
> 
> There's something definitely wrong here.  I know that doing the compile
> should work.

The order that you specify the options matters.  Put the "-lws2_32"
after the .c filename argument.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

