Jump to content


WinSock2


1 reply to this topic

#1 Extrawurst

    New Member

  • Members
  • PipPip
  • 13 posts

Posted 01 November 2003 - 12:59 PM

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!

#2 Extrawurst

    New Member

  • Members
  • PipPip
  • 13 posts

Posted 01 November 2003 - 07:38 PM

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....





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users