问题描述
从VS2005导入VC ++项目到VS2010,它在Win32 Debug,Win32 Release和Win64 Release下编译/链接。
Imported VC++ project from VS2005 to VS2010 and it compiles/links under Win32 Debug, Win32 Release and Win64 Release.
对于Win64 Debug模式,它会产生以下错误:
For Win64 Debug mode, it generates following error:
C:\Program Files(x86)\ MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(320,5):错误MSB6006:" midl.exe"退出代码-2147024774
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(320,5): error MSB6006: "midl.exe" exited with code -2147024774
IDL,ODL文件存在于文件夹中。
IDL, ODL files are present in folder.
推荐答案
我建议你确保你已经将VS2010更新到Service Pack 1.如果你已经这样做了,请在VS2010的另一个系统上进行测试。如果它以完全相同的方式在另一台机器上失败,则将其报告为
上的错误。
I would suggest you make sure that you have VS2010 updated to service pack 1. If you have already done this, test it on another system with VS2010. If it fails on this other machine in the exact same way then report it as a bug on theconnect web site.
哦,还要确保将midl的/ env命令行选项更改为x64,因为某些原因在复制配置时不会更改。它可能会干扰某些事情。
Oh, also make sure that you changed the /env command line option for midl to x64, for some reason this isn't changed when you copy the configuration. It may be interfering with something.
这篇关于midl error -2147024774 VS2010 64位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!