error C2275 illegal use of this type as an expression 解决方法
来源:互联网 发布:单片机串行通信 编辑:程序博客网 时间:2024/04/27 15:59
在VC中编译xxx.c文件出现错误error C2275 illegal use of this type as an expression
问题在于C99之前要求所有的声明必须放在函数块的起始部分,这也是C和C++的重要区别。
方法: 1). 修改成xxx.cpp 。 2). 把声明放在函数起始部分。
参考:http://stackoverflow.com/questions/9549521/compiler-error-c2275
- error C2275! illegal use of this type as an expression
- error C2275 illegal use of this type as an expression 解决方法
- error C2275: ‘XXX’ : illegal use of this type as an expression 报错的解决方法!
- C2275 illegal use of this type as an expression
- 编译选项引发的ERROR C2275:illegal use of this type as an expression
- error C2275: 'FILE' : illegal use of this type as an expression
- error C2275: 'xxx' : illegal use of this type as an expression
- error C2275: 'FILE' : illegal use of this type as an expression
- error C2275: 'time_t' : illegal use of this type as an expression
- error C2275: 'xxx' : illegal use of this type as an expression
- error C2275: 'FILE' : illegal use of this type as an expression
- error C2275: "xxx"illegal use of this type as an expression
- error C2275: 'xxx' : illegal use of this type as an expression
- error C2275 : 'UNICODE_STRING' :illegal use of this type as an expression
- illegal use of this type as an expression 解决方案
- 'PIO_STACK_LOCATION' : illegal use of this type as an expression
- illegal use of this type as an expression
- illegal use of this type as an expression
- (读书笔记).NET大局观—.NET引介
- ubuntu 与 win共享
- LINUX下GDB调试
- Android实战技巧:深入解析AsyncTask
- 揭秘成为世界首富的22种好习惯(转载)
- error C2275 illegal use of this type as an expression 解决方法
- HttpURLConnection的使用
- SQLserver2008全文检索使用方法
- Android TextView中文字通过SpannableString来设置超链接、颜色、字体等属性
- 基于c#的Discuz密码加密
- HTML tab页 实现
- android正则表达式及Pattern Matcher使用
- 20130830可注册域名列表(汇总)
- android自定义视图属性(atts.xml,TypedArray)学习