如何 修改Visual Studio C++ 2015 那些配置的宏

 我来答
匿名用户
2016-01-20
展开全部
Question

0

Sign in to vote
I am building a C/C++ Azure application.
My host system is a Window10 TCP6, with VS2015RC (ver. 14.022823.1) with the Win10 SDK Kit installed.
The C/C++ (win32) application included some standard header file which include the <crtdefs.h>. The CRTDEFS.H inter turn included the <corecrt.h>. This is part of the Azure IoT framework which I cannot change.
Building the app, the VS2015 reported error:

7>c:\program files (x86)\microsoft visual studio 14.0\vc\include\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory

The CRTDEFS.H has:

//
// crtdefs.h
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Declarations used across the Visual C++ Libraries. The lack of #pragma once
// is deliberate.
//
#include <vcruntime.h>
#include <corecrt.h>
//
The CORECRT.H file is located in "C:\Program Files (x86)\Windows Kits\10\Include\10.0.10069.0\ucrt"
QUESTION:
- Shouldn't the CRTDEFS.H used '#include "corecrt.h"'?
- Or the CORECRT.H file should be part of the default include folder for VS2015?
- Is there a work-around for this? - and moving the corecrt.h to VS2015 is not a fix, I tried.
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式