[英]compiling project using curl on msvs2010
I'm developing a dll that uses libcurl. 我正在开发一个使用libcurl的dll。 I builded lib with
vc6curlsrc.dsw
project (I found it into src
folder of curl distributive). 我用
vc6curlsrc.dsw
项目vc6curlsrc.dsw
lib(我发现它进入curl分配的src
文件夹中)。 After I add libcurl.lib
to dependences of profect I get 将
libcurl.lib
添加到Profect的依赖项后,我得到了
main.obj : error LNK2019: unresolved external symbol __imp__curl_easy_init referenced in function "private: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall ComappingApi::request(char * const)" (?request@ComappingApi@@AAE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAD@Z)
the same if I don't add libcurl.lib
to dependences. 如果我不将
libcurl.lib
添加到依赖项,则相同。 Am I missing something! 我错过了什么!
Is the lib correctly linked to the project? lib是否正确链接到项目?
If so, check if you are not missing the CURL_STATICLIB definition in the project. 如果是这样,请检查您是否在项目中没有缺少CURL_STATICLIB定义。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.