我正在将一个旧的C++项目迁移到Visual Studio2013。该项目包含一个.odl文件。当我尝试构建项目时,我得到了以下错误:
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:
import "oaidl.idl";
import "mshtml.idl";我已经尝试了以下链接的变通方法:http://blogs.msdn.com/b/vcblog/archive/2007/06/12/com-interface-redefinition-error.aspx,但它没有解决我的问题。
我的项目文件中没有任何Int64ShllMod32或INT的重新定义。你知道是什么导致了这些错误吗?谢谢!
发布于 2018-07-20 21:46:21
我有一个非常类似的问题,是什么解决了它的Windows SDK的版本更改为更新的版本!希望这能有所帮助!:)
https://stackoverflow.com/questions/34987841
复制相似问题