将 CURL 库添加到 Visual Studio 2013 [英] Adding CURL Library To Visual Studio 2013

查看:37
本文介绍了将 CURL 库添加到 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\Releaselibcurl:附加库目录列表中的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 -> InputAdditional中添加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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆