Visual Studio 2010 error C2065: '_In_opt_z_' : undeclared identifier 编译错误
来源:互联网 发布:如何知道别人网络密码 编辑:程序博客网 时间:2024/04/29 22:18
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(550): error C2065: '_In_opt_z_' : undeclared identifier
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(550): error C2143: syntax error : missing ')' before 'const'
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(550): warning C4229: anachronism used : modifiers on data are ignored
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(550): error C2182: '_invoke_watson' : illegal use of type 'void'
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\crtdefs.h(550): error C2495: '_invoke_watson' : '__declspec(noreturn)' can only be applied to function declarations or definitions
。。。
。。。
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ctype.h(96): error C2144: syntax error : 'int' should be preceded by ')'
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ctype.h(96): error C2448: 'isupper' : function-style initializer appears to be a function definition
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ctype.h(96): error C2059: syntax error : ')'
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ctype.h(97): error C2144: syntax error : 'int' should be preceded by ';'
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ctype.h(97): error C2065: '_In_' : undeclared identifier
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ctype.h(97): error C2144: syntax error : 'int' should be preceded by ')'
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ctype.h(97): error C2448: '_isupper_l' : function-style initializer appears to be a function definition
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ctype.h(97): error C2146: syntax error : missing ';' before identifier '_locale_t'
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ctype.h(97): error C2059: syntax error : ')'
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ctype.h(98): error C2144: syntax error : 'int' should be preceded by ';'
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ctype.h(98): error C2065: '_In_' : undeclared identifier
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ctype.h(98): error C2144: syntax error : 'int' should be preceded by ')'
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ctype.h(98): error C2448: 'islower' : function-style initializer appears to be a function definition
2>C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\ctype.h(98): error C2059: syntax error : ')'
。。。
这是由于WDK中的sal.h文件和Visual Studio中的sal.h文件冲突了。
由于Visual Studio 2010中的sal.h文件比较新,因此产生了这个错误。
解决方法:
1.删除WDK中的sal.h
2.重命名WDK中的sal.h
3.把Visual Studio 2010中的sal.h(E:\program files (x86)\Microsoft Visual Studio 10.0\VC\crt\src) copy到WDK目录中 覆盖WDK的sal.h
WDK sal.h的位置在:C:\WinDDK\7600.16385.0\inc\api\sal.h
- Visual Studio 2010 error C2065: '_In_opt_z_' : undeclared identifier 编译错误
- Visual Studio 2010 error C2065: '_In_opt_z_' : undeclared identifier 编译错误
- Visual Studio 2010 error C2065: '_In_opt_z_' : undeclared identifier 编译错误
- Visual Studio 2010 error C2065: '_In_opt_z_' : undeclared identifier 编译错误
- error:VC编译错误:error C2065: '_beginthreadex' : undeclared identifier
- glog0.3.5 编译错误error C2065: 'uint64_t' : undeclared identifier
- VC++错误:error C2065: 'SHCreateDirectoryEx' : undeclared identifier
- error C2065: '_beginthread' : undeclared identifier错误处理
- VS2008下编译错误(error C2065: '_S1max' : undeclared identifier)的解决办法
- namespace妙用 及解决VC6.0 编译 弹出气球 出现错误 error C2065: 'NIIF_INFO' : undeclared identifier
- error C2065: '_beginthread' : undeclared identifier
- error C2065: 'IDD_SHOWINFODLG' : undeclared identifier
- error C2065: 'CComVariant' : undeclared identifier
- error C2065: 'CArchiveStream' : undeclared identifier
- error C2065: 'getCmdBuf1' : undeclared identifier
- error C2065: 'DEBUG_NEW' : undeclared identifier?
- error C2065: 'NULL' : undeclared identifier
- error C2065: 'pcap_findalldevs_ex' : undeclared identifier
- xp3的_eprocess的利用
- ruby 加密工具ruby encoder 使用相关。
- java之 ------ DAO设计模式的【详解】及常见设计模式的【应用】
- java-查找字符串
- 安卓环境搭建
- Visual Studio 2010 error C2065: '_In_opt_z_' : undeclared identifier 编译错误
- HDU 1312 - Red and Black
- 支持向量机的理解
- Thread中start()和run()的区别
- WINDOWS 7 配置驱动开发环境(wdk7.60)
- Java Collection详解,Java中的集合框架Collection上
- 黑马程序员—学习笔记3—经典的丢手绢程序
- Bestcoder #49
- [Android源码解析] 清空应用内部文件缓存