This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
Re: mingw32 winsock.h
- To: dale henderson <dalekh@hotmail.com>
- Subject: Re: mingw32 winsock.h
- From: Mumit Khan <khan@xraylith.wisc.edu>
- Date: Tue, 27 Apr 1999 23:06:16 -0500 (CDT)
- cc: gnu-win32@cygnus.com
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@4" and "shutdown@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@sourceware.cygnus.com