使用libcurl提示 LNK2001的错误

vs使用libcurl(static library),link时报错:

error LNK2001: unresolved external symbol __imp__curl_easy_perform  
error LNK2001: unresolved external symbol __imp__curl_easy_setopt  
error LNK2001: unresolved external symbol __imp__curl_easy_init  
error LNK2001: unresolved external symbol __imp__curl_easy_cleanup   

1、项目属性->link->input:

libcurl.lib ws2_32.lib winmm.lib wldap32.lib


2、项目属性->C/C++->Preprocessor->Definitions 增加:

BUILDING_LIBCURL

HTTP_ONLY

posted @ 2016-09-19 22:10  程序员大叔  阅读(1069)  评论(0编辑  收藏  举报