首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误MIDL2003:重定义:'x‘

错误MIDL2003:重定义:'x‘
EN

Stack Overflow用户
提问于 2016-01-25 16:12:34
回答 1查看 1.3K关注 0票数 2

我正在将一个旧的C++项目迁移到Visual Studio2013。该项目包含一个.odl文件。当我尝试构建项目时,我得到了以下错误:

代码语言:javascript
复制
Error   3   error MIDL2025: syntax error : expecting ; near "{" C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h  888 1   
Error   2   error MIDL2003: redefinition : Int64ShllMod32   C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h  888 1   
Error   1   error MIDL2003: redefinition : INT  C:\Program Files (x86)\Windows Kits\8.1\Include\um\winnt.h  387 1   

.odl文件中导入以下idls

代码语言:javascript
复制
import "oaidl.idl";
import "mshtml.idl";

我已经尝试了以下链接的变通方法:http://blogs.msdn.com/b/vcblog/archive/2007/06/12/com-interface-redefinition-error.aspx,但它没有解决我的问题。

我的项目文件中没有任何Int64ShllMod32INT的重新定义。你知道是什么导致了这些错误吗?谢谢!

EN

回答 1

Stack Overflow用户

发布于 2018-07-20 21:46:21

我有一个非常类似的问题,是什么解决了它的Windows SDK的版本更改为更新的版本!希望这能有所帮助!:)

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34987841

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档