windows mobile 5.0 SDK中的 prsht.h 头编译不过去怎么回事啊?

来源:百度知道 编辑:UC知道 时间:2024/07/05 20:41:19
错误 5 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int E:\Microsoft Visual Studio\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\prsht.h 58
错误 8 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int E:\Microsoft Visual Studio\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\prsht.h 65
错误 19 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int E:\Microsoft Visual Studio\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\prsht.h 92
错误 20 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int E:\Microsoft Visual Studio\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\include\ARMV4I\prsht.h 92

将近200个这样的错误

错误指向了这些行 (贴出

使用VS2008编译的吧(还是2005?),VS2008对C++的规范要求更严了,以前版本中声明变量可以不指定类型,编译器将自动将变量声明为int型,而在2008中则必须声明变量或函数的类型,否则就出现以上的错误。

你可以把没有类型的变量都加上一个int型就OK了。

基本上的可能是少了个;

class
{

};

最后的;没了

不太懂,呵呵