error C2275! illegal use of this type as an expression
来源:互联网 发布:python snownlp 编辑:程序博客网 时间:2024/04/27 15:31
[原创作品---转载请注明出处----地址:http://blog.csdn.net/jiuaiwo1314]
error C2275! illegal use of this type as an expression
今天在VS2008上面调试模拟器.编译的时候发现报了这个错误,
经过查看代码发现,VS2008编译器,编译不允许在用到函数的时候
再去声明这个函数,即应把声明函数放在函数体最前面.
例如:
#include <stdio.h>
void func();
int main(void)
{ //在这里如果把声明放在main函数之后,你在VS2008上面编译的时候就会报错.
func(); // 所以,为了能实现在不同编译器上能正确编译,我们应该把声明文件放在函数体前面.
return 0;
}
void func()
{
}
- error C2275! 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 illegal use of this type as an expression 解决方法
- error C2275: ‘XXX’ : 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
- android 获取sim信息(三)
- 10.1动态规划例题:数字三角形
- PHP版本--HTTP session cookie原理及应用
- 获取 SqlServer 所有数据库的名称
- SQL Server 2005/2008 日志文件丢失后恢复数据库的办法(ldf lost/corrupt, how to restore/recover DB without LDF file)
- error C2275! illegal use of this type as an expression
- android学习笔记17--------------android 通过数组,流播放声音的方法
- sql groupby 造成一个表中重复记录 少一条
- 晚上回去看下
- JVM虚拟机选项:Xms-Xmx-PermSize-MaxPermSize区别
- 听左强讲-山寨那点事儿系列--手机篇
- 定制eclipse的about对话框
- UI优化
- 开发<c:if><c:else>标签解析及其源代码