Error c2375: “wsacleanup”: redefine; Different links, etc

Error c2375: “wsacleanup”: redefine; Different links, etc

Solution

Solution

By default, windows. H will contain Winsock. H. When you include Winsock 2. H, it will conflict. Therefore, before including windows. H, you need to define a macro to remove Winsock. H

Scheme 1
in #include & lt; windows.h> Add #define Win32 to the previous line_ LEAN_ AND_ Mean// remove some uncommon
scheme 2
Project attribute – C/C + + – preprocessor – preprocessor definition
manually add a macro:
Win32_ LEAN_ AND_ MEAN;

Read More: