[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, uselessCodePudding user response:
Some definitions for many times, remove some unnecessary header filesCodePudding user response:
Delete any filesCodePudding user response:
Try the winsock2. H header file is commented outCodePudding user response:
The # include & lt; Winsock2. H> This sentence in the frontCodePudding user response:
The bad saidYou 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 hCodePudding user response:
Reframe it again,