将 CURL 库添加到 Visual Studio 2013 [英] Adding CURL Library To Visual Studio 2013
问题描述
我想使用 VS2013 在我的 C++ 代码中使用库,但它不起作用,所以我无论如何都搜索了将库添加到 VS 但没有结果!!
I Want To Use library in my C++ code using VS2013, But it Doesn't Work, So I've searched about anyway to add the library to the VS but with no result !!
如何将这个库添加到 C++ 中??
How To add this library to C++ ??
推荐答案
创建项目后 下载 libcurl
您需要提取 libcurl
zip 的内容.然后在 MVS 中打开您的项目并查找解决方案资源管理器.右键单击您的项目并选择底部的 Properties
.
After creating a project and downloading libcurl
you'll want to extract the contents of the libcurl
zip. Afterwards in MVS open your project and look for the solution explorer. Right click on your project and chose Properties
at the bottom.
在 Configuration Properties
-> Linker
-> General
下添加您提取的文件夹 lib\Release
libcurl
:附加库目录
列表中的libcurl-7.19.3-win32-ssl-msvc\lib\Release
.
Under Configuration Properties
-> Linker
-> General
add the folder lib\Release
from where you extracted libcurl
: libcurl-7.19.3-win32-ssl-msvc\lib\Release
in the Additional Library Directories
list.
在Configuration Properties
-> Linker
-> Input
在Additional中添加
列表.curllib.lib
依赖项
Under Configuration Properties
-> Linker
-> Input
add curllib.lib
in the Additional Dependencies
list.
在 Configuration Properties
-> C/C++
-> General
下添加 include\curl
从你提取的地方libcurl
:附加包含目录
列表中的libcurl-7.19.3-win32-ssl-msvc\include\curl
.
Under Configuration Properties
-> C/C++
-> General
add include\curl
from where you extracted libcurl
: libcurl-7.19.3-win32-ssl-msvc\include\curl
in the Additional Include Directories
list.
按Ok
,你就完成了.您甚至可能想查看 libcurl
示例 此处.
Press Ok
and you're done. You might even want to take a look at the libcurl
examples here.
这篇关于将 CURL 库添加到 Visual Studio 2013的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!