Estoy compilando un proyecto en Visual C++ 2010, pero tengo problemas con algunas redefiniciones de Winsock.Errores de redefinición de Winsock
Ante todo me sale:
syntax error : identifier 'SOCKADDR_STORAGE'
Pero si incluyo Winsock o winsock2 o ws2tcpip i obtener muchos errores como estos:
error C2011: 'sockaddr' : 'struct' type redefinition
error C2011: 'WSAData' : 'struct' type redefinition
error C2011: 'linger' : 'struct' type redefinition
¿Podría publicar una muestra de código? También intente agregar '#define WIN32_LEAN_AND_MEAN' – ctor
Veamos el bloque' # include' del módulo ofensivo. – wallyk
No tengo ningún lujo incluye, tengo estos // # include #include // # include Tengo que incluirlos en algunos archivos .cpp. –
Cooker