Errors C2011 and C2375 when using winsock2.h
Hi,
When I include a file that has winsock2.h included in it to my project...
I'm getting errors such as (58 in total):
c:\Program Files\Microsoft Visual Studio .NET\Vc7
\PlatformSDK\Include\WinSock2.h(153): error
C2011: 'timeval' : 'struct' type redefinition
and
c:\Program Files\Microsoft Visual Studio .NET\Vc7
\PlatformSDK\Include\WinSock2.h(1650): error
C2375: 'closesocket' : redefinition; different linkage
Could someone tell me what I can do?
or where the source of the error could be?
(here's the list ob libraries from my project, if it's of any use
/OUT:"Debug/demo.exe" /INCREMENTAL /NOLOGO /LIBPATH:
"c:\wxWindows\lib" /NODEFAULTLIB:"libcd.lib" /NODEFAULTLIB:"lib
cid.lib" /NODEFAULTLIB:"msvcrt.lib" /DEBUG /PDB:"Debug/full.pdb"
odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib
winmm.lib wxmswd.lib zlibd.lib regexd.lib pngd.lib jpegd.lib tiffd.lib
wxxrcd.lib Wldap32.lib Ws2_32.lib kernel32.lib user32.lib
gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib
ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib "\wxWindows\lib\wxmswd.lib"
"\wxWindows\lib\zlibd.lib" "\wxWindows\lib\regexd.lib" "\wxWind
ows\lib\pngd.lib" "\wxWindows\lib\jpegd.lib" "\wxWindows\lib\tiffd
.lib" "\wxWindows\lib\wxxrcd.lib"
)