delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/04/28/00:08:15

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
X-Authentication-Warning: modi.xraylith.wisc.edu: khan owned process doing -bs
Date: Tue, 27 Apr 1999 23:06:16 -0500 (CDT)
From: Mumit Khan <khan AT xraylith DOT wisc DOT edu>
To: dale henderson <dalekh AT hotmail DOT com>
cc: gnu-win32 AT cygnus DOT com
Subject: Re: mingw32 winsock.h
In-Reply-To: <19990427214049.29011.qmail@hotmail.com>
Message-ID: <Pine.SUN.3.93.990427230310.16286E-100000@modi.xraylith.wisc.edu>
MIME-Version: 1.0

On Tue, 27 Apr 1999, dale henderson wrote:

> 
> 
> I am trying to use this header in a GUI framework, wxwindows.
> When make runs the linker to create the .exe, it drops with
>  undefined references to all winsock functions in the 
> format: <function name>@<integer>, such as 
> 
> "closesocket AT 4" and "shutdown AT 8".

Add -lwsock32 to your link line. I assume Win32 API docs mention this.

> 
> I may not have cygwin.dll and winsock in sync. Any suggestions?
> 

Mingw32 executables do not use Cygwin DLL. When you use mingw,
you use MS runtime by default; when you Cygwin GCC, you use Cygwin 
DLL by default. Can't mix those two.

Regards,
Mumit



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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