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.
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: mingw32 winsock.h


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