如何将curlpp添加到我的项目中? [英] How do I add curlpp to my project?

查看:215
本文介绍了如何将curlpp添加到我的项目中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从vb.net过渡到C ++,但我坚持这样做.我从此处 a>这给了我一个.dll,.exp和.lib文件.我在项目属性(链接程序->常规)中将包含这3个文件的目录添加到其他库目录"中.

I'm trying to make a transition from vb.net to C++ and I'm stuck on this. I downloaded curlpp from here which got me a .dll, .exp and .lib file. I added the directory that contains those 3 files to "Additional Library Directories" in the project properties (Linker -> General).

接下来,我还在项目属性(链接器->输入)中将ws2_32.lib和Wldap32.lib添加到其他依赖项",因为

Next, I added ws2_32.lib and Wldap32.lib to "Additional Dependencies", also in the project properties (Linker -> Input) because this question stated I should.

现在,我正在尝试使示例00 正常工作,但

Now I'm trying to get Example 00 to work, but

#include <curlpp/curlpp.hpp>
#include <curlpp/Easy.hpp>
#include <curlpp/Options.hpp>

指出无法打开源文件curlpp/curlpp.hpp"等,这是有道理的,因为我什至从未见过这些文件.我究竟做错了什么?这与vb.net完全不同,我似乎无法弄清楚.

States "cannot open source file curlpp/curlpp.hpp" etc. which makes sense because I have never even seen those files. What am I doing wrong? This is quite different from vb.net and I can't seem to figure it out.

更新:

我按照Mat所说的做了,但是没有用,所以我确定添加了所有relevent文件夹.

I did what Mat said, but it didn't work, so I added all relevent folders to be sure.

但是VS仍然指出找不到文件.

But VS still states the files can't be found.

推荐答案

您应下载完整的源程序包(.tar.gz

You should download the full source package (.tar.gz in the downloads section) to get the headers, code, samples and documentation.

您需要将包含文件在您的计算机上驻留的基本目录(在解压缩存档之后)添加到项目的包含目录列表中.

You'll need to add the base directory where the include files reside on your machine (after unpacking the archive) to the list of include directories for your project.

这篇关于如何将curlpp添加到我的项目中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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