#pragma comment(lib, "ws2_32.lib")
#include <irrNet.h>
and all includes files from irrNet and im getting this errors:
Code: Select all
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock2.h(112) : error C2011: 'fd_set' : 'struct' type redefinition
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock.h(54) : see declaration of 'fd_set'
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock2.h(147) : warning C4005: 'FD_SET' : macro redefinition
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock.h(88) : see previous definition of 'FD_SET'
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock2.h(156) : error C2011: 'timeval' : 'struct' type redefinition
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock.h(97) : see declaration of 'timeval'
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock2.h(212) : error C2011: 'hostent' : 'struct' type redefinition
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock.h(153) : see declaration of 'hostent'
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock2.h(225) : error C2011: 'netent' : 'struct' type redefinition
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock.h(166) : see declaration of 'netent'
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock2.h(232) : error C2011: 'servent' : 'struct' type redefinition
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock.h(173) : see declaration of 'servent'
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock2.h(244) : error C2011: 'protoent' : 'struct' type redefinition
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock.h(185) : see declaration of 'protoent'
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock2.h(400) : error C2011: 'sockaddr_in' : 'struct' type redefinition
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock.h(321) : see declaration of 'sockaddr_in'
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock2.h(410) : error C2011: 'WSAData' : 'struct' type redefinition
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock.h(331) : see declaration of 'WSAData'
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock2.h(470) : warning C4005: 'SO_DONTLINGER' : macro redefinition
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock.h(411) : see previous definition of 'SO_DONTLINGER'
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock2.h(527) : warning C4005: 'AF_IPX' : macro redefinition
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock.h(469) : see previous definition of 'AF_IPX'
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock2.h(555) : warning C4005: 'AF_MAX' : macro redefinition
e:\arquivos de programas\microsoft visual studio 8\vc\platformsdk\include\winsock.h(488) : see previous definition of 'AF_MAX'
....
....
....