Strange MSVC winsock2 compile error
If you can answer this question I will really appreciate it.. It's making me crazy because there doesn't seem to be any reason for it. I am getting about 100 compile errors all from within winsock2.h... Here are a few:
Quote:
c:\program files\devstudio\vc98\include\winsock2.h(99) : error C2011: 'fd_set' : 'struct' type redefinition
c:\program files\devstudio\vc98\include\winsock2.h(134) : warning C4005: 'FD_SET' : macro redefinition
c:\program files\devstudio\vc98\include\winsock.h(83) : see previous definition of 'FD_SET'
c:\program files\devstudio\vc98\include\winsock2.h(143) : error C2011: 'timeval' : 'struct' type redefinition
c:\program files\devstudio\vc98\include\winsock2.h(199) : error C2011: 'hostent' : 'struct' type redefinition
c:\program files\devstudio\vc98\include\winsock2.h(212) : error C2011: 'netent' : 'struct' type redefinition
c:\program files\devstudio\vc98\include\winsock2.h(219) : error C2011: 'servent' : 'struct' type redefinition
I have searched and searched. It appears that this might happen if you #include both winsock2 and winsock, but winsock.h is not mentioned anywhere in my source. winsock2.h is only #include'd once in all my source..
Help.. Thanks.