简体   繁体   English

在msvs2010上使用curl编译项目

[英]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.

相关问题 MSVS2010中“%”宏与“$”宏之间的差异 - Difference between “%” macros and “$” macros in MSVS2010 在MSVS2010中使用静态链接库(MSVS2008) - usage of static linked library (MSVS2008) in MSVS2010 移植到MSVS2010 C ++ GUI的MSVS2010 C ++控制台代码失败。 为什么? - MSVS2010 C++ Console Code Ported to MSVS2010 C++ GUI is Failing. Why? MSVS2010链接器错误悲伤-不能完全确定出什么问题了 - MSVS2010 linker error sadness - not entirely sure what is wrong xcode 4中的赋值运算符崩溃在MSVS2010中可以正常运行 - Assignment operator crash in xcode 4, runs fine in MSVS2010 从MSVS2005移植C ++ .net代码到MSVS2010时找不到资源(?) - Resource not found(?) while porting C++ .net code from MSVS2005 to MSVS2010 从MSVS2005到MSVS2010的端口:我再也找不到ReadProcessorPwrScheme() - Port from MSVS2005 to MSVS2010: I canno longer find ReadProcessorPwrScheme() 为什么我会在使用其他库时遇到 LNK4098 冲突 - 尝试在 MSVS2010 Express 中编译 C++ 时? - Why do I get LNK4098 conflicts with use of other libs - when trying to compile C++ in MSVS2010 Express? 将预先构建的Qt二进制文件用于MSVS 2008和MSVS 2010 - Using prebuilt Qt binaries for MSVS 2008 with MSVS 2010 为什么MSVS 2010 MFC项目依赖于vcredist_x86.exe for MSVS 2008? - Why does MSVS 2010 MFC project depend on vcredist_x86.exe for MSVS 2008?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM