winsock2 header missing function prototypes

James Hawkins truiken at
Mon Sep 26 21:32:46 CDT 2005

On 9/26/05, James Hawkins <truiken at> wrote:
> Hey,
> While trying out example code from msdn covering windows sockets, I
> ran into a problem with the winsock2.h header.  The example only
> included winsock2.h and used the socket() function.  While compiling
> with winelib, gcc complained that socket is not a function.  I looked
> through winsock2.h and couldn't find the prototype.  It turns out the

It turns out it's my fault..really silly actually.  I didn't realize
that I named the variable socket.  Sorry about all the noise :)

James Hawkins

More information about the wine-devel mailing list