if U got these error when using libcurl in vs, see this

Linking...
   Creating library Debug/libcurl.lib and object Debug/libcurl.exp
telnet.obj : error LNK2001: unresolved external symbol __imp__WSAEnumNetworkEvents@12
telnet.obj : error LNK2001: unresolved external symbol __imp__WSAEventSelect@12
telnet.obj : error LNK2001: unresolved external symbol __imp__WSACreateEvent@0
Debug/libcurl.dll : fatal error LNK1120: 3 unresolved externals

 

then U need to add ws2_32.lib in the project setting’s linking modle and everything gonna be ok.

 

the C's API of Curl can be found here:

http://curl.haxx.se/libcurl/c/

posted on 2012-02-23 16:51  林子好  阅读(244)  评论(0编辑  收藏  举报

导航