我把C语言写的一个头文件移到MFC下后,编译就出现以下错误:
error C2159: more than one storage class specified错误指向一个typedef struct a{
int a;
int b;
} a;
的定义。为何在C里没有任何问题,到了C++里就出错?
error C2159: more than one storage class specified错误指向一个typedef struct a{
int a;
int b;
} a;
的定义。为何在C里没有任何问题,到了C++里就出错?
包含下列内容:
typedef struct a{
int a;
int b;
} a;
.
.
.
CPP文件:a.CPP
#include "a.h"
.
.
.这两个文件编译时就会出现error C2159: more than one storage class specified 错误,真搞不清楚为何这样。
int a;
int b;
} a;这么定义有问题啊。