无法打开包含文件:'cpprest/http_client.h' [英] Cannot open include file: 'cpprest/http_client.h'

查看:81
本文介绍了无法打开包含文件:'cpprest/http_client.h'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 casablanca 'c++ rest sdk' 为 REST 请求运行 c++ windows 应用程序.我创建了新的CLR Empty Project"(visual studio 2012)并添加了新项目-Windows Form".添加了一些代码并且能够在运行项目时看到一个表单.现在,我已经按照说明使用 NuGet 安装了 c++ rest sdk.一切顺利.问题是为了使用c++ rest sdk",我添加了这些:

I'm trying to run c++ windows application using casablanca 'c++ rest sdk' for REST requests. I've created new 'CLR Empty Project' (visual studio 2012) and added new item - 'Windows Form'. added some code and was able to see a form when running the projects. now, I have installed the c++ rest sdk using NuGet, as the instructions tell. it all went successfully. the problem is that in order to use the 'c++ rest sdk' I've added these:

#include <cpprest/http_client.h>
#include <cpprest/filestream.h> 

它没有找到那些文件.我要了

and it doesn't find those files. I'm getting

fatal error C1083: Cannot open include file: 'cpprest/http_client.h': No   such file or directory

项目截图:

谢谢!

推荐答案

检查您是否为标题设置了包含目录.您可以在项目属性 -> 配置属性 -> C/C++ -> 常规 -> 附加包含目录下进行.

Check if you have set up the include directories for the headers. You can do it under project properties -> Configuration Properties -> C/C++ -> General -> Additional Include Directories.

这篇关于无法打开包含文件:'cpprest/http_client.h'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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