error c2375 redefinition error

Error C2375 "accept": redefinition; different links

error C2375: "sendto": redefinition; different links

and many more

Error: Header order

Insert picture description here

The main reason is because the <Winsock.h> header file is included in <Windows.h>, due to its different versions

Insert picture description here

Solution: Change the order of the header files to winSock2.h and place it on Windows.h

Insert picture description here

Published 14 original articles · Like1 · Visits 119

Guess you like

Origin blog.csdn.net/m0_45867846/article/details/105340258