If you’re build the program using wxwidgets and you got an error after add WinSock2.h header like this:
Error 13 error C2011: ‘fd_set’ : ‘struct’ type redefinition C:\Program Files\Windows Kits\8.1\Include\um\WinSock2.h 125 1 sia-project
So for fix the problem, you must change setup.h from wxwidgets lib your using. Example from this project I use library from C:\wxwidgets\lib\vc_lib\mswud
So open that directory/C:\wxwidgets\lib\vc_lib\mswud and open wx directory and open file setup.h:
And after that file openned, change this code:
//before #define wxUSE_IPV6 0 // after changed #define wxUSE_IPV6 1
The last now build and compile your program again, see now your program not have error again.. Happy nice coding 😀
Source: http://trac.wxwidgets.org/ticket/10931
Advertisements
Terrific article! This is the type of information that
are supposed to be shared across the internet. Shame on the search engines for not positioning this
submit higher! Come on over and seek advice from my site .
Thanks =)