'__cplusplus'未定义为预处理器宏,替换为'#if /#elif'为'0' [英] '__cplusplus' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'

查看:1397
本文介绍了'__cplusplus'未定义为预处理器宏,替换为'#if /#elif'为'0'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试编译c99源代码,并且有以下警告:

I'm trying to compile a c99 source and I have the following warning:

C:\Program Files(x86)\ Windows Kits \10\include\10.0.17763.0\ucrt\corecrt.h(212):警告C4668:'__ cplusplus'是未定义为预处理器宏,替换为'#if / #elif'为'0'

C:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt\corecrt.h(212): warning C4668: '__cplusplus' is not defined as a preprocessor macro, replacing with '0' for '#if/#elif'

你能告诉我为什么我有这个警告?

could you tell me why I have this warning?

我正在使用cmake + nmake编译源代码,我是否必须传递一个标志以避免此警告?

I'm using cmake + nmake to compile the source, do I have to pass a flag to avoid this warning?

谢谢非常

推荐答案

你在使用什么编译器?

What compiler are you using?


这篇关于'__cplusplus'未定义为预处理器宏,替换为'#if /#elif'为'0'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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