WinSock2

365f553bf246ba963aee3325a5c4235e
0
Extrawurst 101 Nov 01, 2003 at 12:59

hi,
my problem is, that immediatly after including the “WinSock2.h” hundrets of these errors appear!->

h:\Microsoft Visual Studio .NET 
2003\Vc7\PlatformSDK\Include\WinSock2.h(254 :
error C2375: 'WSAAsyncSelect' : redefinition; 
different linkage
 h:\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\WinSock.h(943) : see
declaration of 'WSAAsyncSelect'

When i included the header in my last console-project i diddnt get that error! it seems that it is in conflict with a previously included “Winsock.h”, but i didnt ever included ist!
Please help me!

1 Reply

Please log in or register to post a reply.

365f553bf246ba963aee3325a5c4235e
0
Extrawurst 101 Nov 01, 2003 at 19:38

okay, i solved it!
so you know for the future who didn’t, the Problem was that you have to include “Winsock2.h” before including “Windows.h”, beecause the “WinSock.h” is included with that, the other way instead of changing the including-order, you can define WIN_LEAN_AND_MEAN….