vs2010 库函数问题:objidl.h(11266) : error C2061: syntax error : identifier '__RPC__out_xcount_part'
来源:互联网 发布:怎样在手机上淘宝购物 编辑:程序博客网 时间:2024/06/05 18:25
1.未使用DirectX时处理方法引用内容出自:http://blog.csdn.net/abcjennifer/article/details/7557337
这个错误是lib文件缺失或者include缺失导致的,但VS2010的UI设置的相当不合理,让人们想编辑原先的VC++目录文件却无从下手。解决方案如下:
打开VS2010工程项目
注意 在左下角有Solution Explorer、Class View、Property Manager等几个选项在VS2010中修改Inherited VC++ Directories和之前的VS不一样了。
显示Property Manager
里面有Debug|Win32和Release|Win32选 项
这2个选项可以设置Debug和Release的工程属性设置
打开其中任何一个
双击 Microsoft.Cpp.Win32.user会弹出Microsoft.Cpp.Win32.user Property Pages页面,
在这里可以修改Inherited VC++ Directories。
如果你遇到了下面的编译错误:
objidl.h(11266) : error C2061: syntax error : identifier '__RPC__out_xcount_part'
用上面的方法把DirectX SDK Include从Include路径中删除就可以了。
补充说明:
在project property对话框里面修改的VC++ Directories是特定于工程的。以上修改的VC++ Directories是全局的,影响所有工程和所有配置(Debug/Release/...)。
2.使用DirectX SDK时,只能使用较高版本的DirectX SDK才能解决这个问题,即更换高版本SDK,本人更换的SDK为 Microsoft DirectX SDK (June 2010)下载地址为:http://www.microsoft.com/en-us/download/confirmation.aspx?id=6812 另给出浅墨大神使用的SDK下载地址:http://www.microsoft.com/en-us/download/confirmation.aspx?id=10568 后者是会报错的。
在使用各种库的时候,时不时就会遇到库文件和Windows库文件冲突问题,大部分都是因为两个库的包含顺序造成两个库的头文件中变量或者宏之类的有冲突。出现这种问题又不能修改Inherit from parent or project defaults,所以没法把Windows SDK库文件放在DirectX SDK库文件之后,个人觉得可以把Inherit from parent or project defaults去掉,然后自己项目中单独把那些包含的头文件添加进去,这样就可以调整整个顺序了。没有试,理论上是可以的。
0 0
- vs2010 库函数问题:objidl.h(11266) : error C2061: syntax error : identifier '__RPC__out_xcount_part'
- vs2010 库函数问题:objidl.h(11266) : error C2061: syntax error : identifier '__RPC__out_xcount_part'
- vs2010 库函数问题:objidl.h(11266) : error C2061: syntax error : identifier '__RPC__out_xcount_part'
- error C2061: syntax error : identifier '__RPC__out_xcount_part'
- error C2061: syntax error : identifier '__RPC__out_xcount_part'
- error C2061: 语法错误: 标识符“__RPC__out_xcount_part” VS2010
- error C2061: 语法错误: 标识符“__RPC__out_xcount_part” VS2010
- VS2010 error C2061: 语法错误: 标识符“__RPC__out_xcount_part” 解决方法
- error C2061: syntax error : identifier 'LONG_PTR'
- error C2061: syntax error : identifier 'THIS_FILE'
- error C2061: syntax error : identifier 'CAMSchedule'
- error C2061: syntax error : identifier '__RPC__deref_out_opt
- error C2061: syntax error : identifier ‘XXXX’
- error C2061: syntax error : identifier 'THIS_FILE'
- error C2061: syntax error : identifier 'THIS_FILE'
- error C2061: syntax error : identifier 'PCONTEXT'处理
- error C2061: syntax error : identifier '_Wherenode'
- error C2061: syntax error : identifier 'CAMSchedule'
- Variational Bayes(变分贝叶斯)
- SSL/TLS协议详解
- 重命名Web项目时,需要更改的文件
- Java中native关键字
- REST WCF 简单架设
- vs2010 库函数问题:objidl.h(11266) : error C2061: syntax error : identifier '__RPC__out_xcount_part'
- 线段树基础入门学习(适合在notnoly success以前看)
- select函数详解及实例分析
- TCP/IP基础(二)
- hdu 1299 Diophantus of Alexandria (素数筛选)
- NYOJ 39 水仙花数
- OSG (OpenSceneGraph-3.2.1)编译程序下载
- Cocoapods安装和使用
- http://www.cnblogs.com/tornadomeet/