Re: Compiling SDK SOCKS Filter Not Work

  • From: Thor@xxxxxxxxxxxxxxx
  • To: isalist@xxxxxxxxxxxxx
  • Date: Fri, 28 Dec 2001 10:24:25 -0800

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



>...compiling works fine and then...
>SocksConnection.cpp
>C:\Program Files\Microsoft SDK\include\winsock2.h(109) : error C2011:
>'fd_set' : 'struct' type redefinition
>C:\Program Files\Microsoft SDK\include\winsock2.h(144) : warning C4005:
>'FD_SET' : macro redefinition
>         C:\Program Files\Microsoft SDK\include\winsock.h(88) : see
>previous definition of 'FD_SET'
>C:\Program Files\Microsoft SDK\include\winsock2.h(153) : error C2011:
>'timeval' : 'struct' type redefinition
>C:\Program Files\Microsoft SDK\include\winsock2.h(209) : error C2011:
>'hostent' : 'struct' type redefinition
>C:\Program Files\Microsoft SDK\include\winsock2.h(222) : error C2011:
>'netent' : 'struct' type redefinition
>C:\Program Files\Microsoft SDK\include\winsock2.h(229) : error C2011:
>'servent' : 'struct' type redefinition
>C:\Program Files\Microsoft SDK\include\winsock2.h(241) : error C2011:
>'protoent' : 'struct' type redefinition
>C:\Program Files\Microsoft SDK\include\winsock2.h(327) : error C2011:
>'in_addr' : 'struct' type redefinition
>
>...119 errors!  What can I do to make it compile?

Did you include the proper libraries in the link options under the project 
settings?


AD

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.1

iQA/AwUBPCy42YhsmyD15h5gEQImRQCeIrwa+WOKeXLQuraKhBeOrlCTrkIAoLEw
4snw/ucgfz2rAfdJiE7Pa9Eg
=+vz4
-----END PGP SIGNATURE-----


Other related posts: