delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/22/13:57:06

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: eos.vss.fsi.com: ford owned process doing -bs
Date: Wed, 22 Oct 2003 12:55:30 -0500 (CDT)
From: Brian Ford <ford AT vss DOT fsi DOT com>
X-X-Sender: ford AT eos
To: cygwin AT cygwin DOT com
Subject: Re: Can't link to libws2_32.a
In-Reply-To: <20031022172058.66718.qmail@web303.mail.yahoo.co.jp>
Message-ID: <Pine.GSO.4.56.0310221252060.823@eos>
References: <20031022172058 DOT 66718 DOT qmail AT web303 DOT mail DOT yahoo DOT co DOT jp>
MIME-Version: 1.0

On Thu, 23 Oct 2003, Takeshi Honda wrote:

> I want to use winsock2.h, but when I compiled my program,
> I got the following errors.
>
> %gcc -lwsock32 -lws2_32 main.cpp
>
First off, libraries go after C/C++ files, so:

gcc main.cpp -lwsock32 -lws2_32

Secondly, why are you trying to use winsock in Cygwin?  Just use normal
unix sockets.  If you were using mingw/-mno-cygwin, I might understand.

> DLL version is  1.3.12.
>
If you meant the Cygwin DLL here, I *strongly* suggest you update as you
won't be getting much more help from this list until you do.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
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/

- Raw text -


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