简体   繁体   中英

winsock errors visual studio

I want to write an app which uses libcurl, I added the lib and without writing any code trying to compile it, it gives me some compiler errors

Fehler  79  error C2375: 'WSAAsyncSelect': Neudefinition; unterschiedliche Bindung  C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winsock2.h    2461
Fehler  55  error C2375: 'shutdown': Neudefinition; unterschiedliche Bindung    C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\winsock2.h    1966
Fehler  114 error C2227: Links von "->imsf_interface" muss sich ein Zeiger auf Klassen-/Struktur-/Union-/generischen Typ befinden.  C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h    773
Fehler  106 error C2065: 'Filter': nichtdeklarierter Bezeichner C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\ws2tcpip.h    766

in german they mean type newdefinition and the last one that some things are not declared, there are much more but they are the same, I also installed SDK from another post that wrote that it should fix problems with winsock

Refer to this post

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM