Home > Back-end >  About the winsock2. H
About the winsock2. H

Time:10-19

In c + + Builder before operation no problem, then before you know it is an error, and then I reinstall the c + + Builder before also installed Indy10, but now an error, please help me to look at what problems. I cited in the engineering ws2_32. Lib, includepath directores/conditionals don't management or libraypath have added all the VCL and Indy10 directory, but still error, I see online say heavy definition but I should be already defined, because there is no problem, before running the code is a set of code not to make any changes, thank you


[Error] c + + winsock2. H (109) : E2238 Multiple declaration for 'fd_set'
[Error] c + + winsock. H (54) : E2344 Earlier declaration of 'fd_set'
[Error] c + + winsock2. H (112) : E2146 Need an identifier to declare
[Warning] c + + winsock2. H. (144) : W8017 Redefinition of 'FD_SET' is not identical
[Error] c + + winsock2. H (153) : E2238 Multiple declaration for 'timeval'
[Error] c + + winsock. H (97) : E2344 Earlier declaration of 'timeval'
[Error] c + + winsock2. H (209) : E2238 Multiple declaration for 'hostent'
[Error] c + + winsock. H (153) : E2344 Earlier declaration of 'hostent'
[Error] c + + winsock2. H (222) : E2238 Multiple declaration for 'netent'
[Error] c + + winsock. H (166) : E2344 Earlier declaration of 'netent'
[Error] c + + winsock2. H (229) : E2238 Multiple declaration for 'servent'
[Error] c + + winsock. H (173) : E2344 Earlier declaration of 'servent'
[Error] c + + winsock2. H (241) : E2238 Multiple declaration for 'protoent'
[Error] c + + winsock. H (185) : E2344 Earlier declaration of 'protoent'
[Error] c + + winsock2. H (327) : E2238 Multiple declaration for 'in_addr'
[Error] c + + winsock. H (269) : E2344 Earlier declaration of 'in_addr'
[Error] c + + winsock2. H (385) : E2238 Multiple declaration for 'sockaddr_in'
[Error] c + + winsock. H (319) : E2344 Earlier declaration of 'sockaddr_in'
[Error] c + + winsock2. H (395) : E2238 Multiple declaration for 'WSAData'
[Error] c + + winsock. H (329) : E2344 Earlier declaration of 'WSAData'
[Error] c + + winsock2. H (411) : E2146 Need an identifier to declare
[Warning] c + + winsock2. H. (455) : W8017 Redefinition of 'SO_DONTLINGER is not identical
[Warning] c + + winsock2. H. (512) : W8017 Redefinition of 'AF_IPX' is not identical
[Warning] c + + winsock2. H. (540) : W8017 Redefinition of 'AF_MAX' is not identical
[Error] c + + winsock2. H (546) : E2238 Multiple declaration for 'sockaddr'
[Error] c + + winsock. H (492) : E2344 Earlier declaration of 'sockaddr'
[Error] c + + winsock2. H (586) : E2238 Multiple declaration for 'sockproto'
[Error] c + + winsock. H (501) : E2344 Earlier declaration of 'sockproto'
[Error] c + + winsock2. H (625) : E2238 Multiple declaration for 'linger'
[Error] c + + winsock2. H (625) : E2228 Too many Error or warning messages

CodePudding user response:

Try to adjust the header file contains order,

CodePudding user response:

Compile operation no problem, but certainly before the code I haven't touched, and I also tried order mode, useless

CodePudding user response:

Some definitions for many times, remove some unnecessary header files

CodePudding user response:

Delete any files

CodePudding user response:

Try the winsock2. H header file is commented out

CodePudding user response:

The # include & lt; Winsock2. H> This sentence in the front

CodePudding user response:

The bad said

You try upstairs warrior to

If not then come step by step

CodePudding user response:

Redefine the structure, the structure is defined in multiple head file used at the same time, you can change the order of the once head file, winsock2. H on the Windows. The front of the h

CodePudding user response:

Reframe it again,
  • Related