我是 Windows 开发世界的新手。我的机器上安装了 Visual Studio 2010 和 windows SDK 7.0a。任何 win32 应用程序(甚至是使用向导生成的骨架)都会给我这个编译错误重复数百次:
2> 注意:包含文件:C:\Program Files\Microsoft Visual Studio 10.0\VC\include\stdio.h
2> 注意:包含文件:C:\Program Files\Microsoft Visual Studio 10.0\VC\include\crtdefs.h
2> 注意:包含文件:C:\Program Files\Microsoft Visual Studio 10.0\VC\include\swprintf.inl
2> 注意:包含文件:C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\Windows .h
2> 注意:包含文件:C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\sdkddkver.h
2> 注意:包含文件:C:\Program Files\Microsoft Visual Studio 10.0\VC\include \excpt.h
2> 注意:包含文件:C:\Program Files\Microsoft Visual Studio 10.0\VC\include\crtdefs.h
2> 注意:包含文件:C:\Program Files\Microsoft Visual Studio 10.0\VC\include \stdarg.h
2> 注意:包含文件:C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\windef.h
2> 注意:包含文件:C:\Program Files\Microsoft SDKs\Windows\v7.0A\include \winnt.h
2> 注意:包含文件:C:\Program Files\Microsoft Visual Studio 10.0\VC\include\ctype.h
2> 注意:包含文件:C:\Program Files\Microsoft Visual Studio 10.0\VC\include \crtdefs.h
2> 注意:包含文件:C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\specstrings.h
*2> 注意:包含文件:c:\program files\microsoft sdks\windows\ v7.0a\include\sal_supp.h*
*2> 注意:包括文件:c:\program files\microsoft sdks\windows\v7.0a\include\specstrings_supp.h*
*2> 注意:包括文件:C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\specstrings_strict.h*
*2> 注意:包括文件:C:\Program Files\Microsoft SDKs\Windows\v7。 0A\include\specstrings_undef.h*
2> 注意:包含文件:C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h
*2> 注意:包含文件:c:\program files\microsoft sdks\windows\v7.0a\include\sdv_driverspecs.h*
2>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(356):错误 C3861: 'SAL_functionClass': 找不到标识符
2>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(356):错误 C2059: 语法错误: ')'
2>C:\Program Files\Microsoft SDKs\Windows\v7. 0A\包括\驱动程序规范。h(374):错误 C2144:语法错误:'char' 应该以 ')'
开头 2>C:\Program Files\Microsoft SDKs\Windows\v7.0A\include\driverspecs.h(374):错误 C3861:'SAL_acquire':标识符未找到
请指教。谢谢。