这个char DEBUG = 1中的错误是什么 [英] what error in this char DEBUG=1

查看:73
本文介绍了这个char DEBUG = 1中的错误是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我声明了char DEBUG = 1;

但它显示

I declared char DEBUG=1;
but it shows

error C2513: 'char' : no variable declared before '='

推荐答案

你为你的变量选择了一个不幸的名字,可能它与一个定义的宏名称发生了冲突,你的项目(直接或间接)包含在某个头文件中,有类似的东西。 />
You chose an unfortunate name for your variable, probably it clashes with a defined macro name, that is in a certain header file your project (either directly or indirectly) includes, there is something like
#define DEBUG 





我会使用'危险较小的名字',比如例如 mydebug


这篇关于这个char DEBUG = 1中的错误是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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