Visual C ++ 2008错误编译简单文件

时间:2013-12-14 21:16:40

标签: c++ visual-studio-2008 compiler-errors

我有一个新安装的Microsoft Visual Studio 2008 Express副本。

我有simple.cpp

#include <iostream>

我运行此命令:

cl.exe /c simple.cpp 

我得到了:

C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(189) : error C31
14: 'MustCheck': not a valid named attribute argument
        'MustCheck' must be a data member which is not static, const or literal
        or a property which is read-write and not static
C:\Program Files\Microsoft Visual Studio 9.0\VC\INCLUDE\stdio.h(189) : error C31
14: 'Null': not a valid named attribute argument
        'Null' must be a data member which is not static, const or literal
        or a property which is read-write and not static

加上几个更多的错误。

1 个答案:

答案 0 :(得分:0)

我卸载了MSVC。重新启动。重新安装它。重新启动。现在它有效。