简体   繁体   English

MS Visual Studio 2010出现CL错误,这是什么

[英]CL error with MS Visual Studio 2010, what is it

I am building a project with cmake using ms visual studio. 我正在使用ms visual studio使用cmake构建项目。 I am getting this error from MS visual studio (2010): 我从MS Visual Studio(2010)中收到此错误:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\x64\Microsoft.Cpp.x64.Targets(146,5): error MSB6006: "CL.exe" exited with code -1073740777

I have not been able to find anything about this error (obv I've googled it), but I can't find a description! 我无法找到任何有关此错误的信息(我已经用谷歌搜索了它),但是找不到描述! I also tried the error lookup tool and it didn't bring anything up. 我还尝试了错误查找工具,但没有带来任何好处。

Any idea what this error means? 知道这个错误是什么意思吗?

I moved the project generation to a different dir (much smaller path) and the error went away, and everything compiled fine. 我将项目生成移动到了另一个目录(路径更小),错误消失了,一切编译正常。 It appears this has to do with the path length and length of the CL command. 看来这与路径长度和CL命令的长度有关。

This Link was helpful in diagnosing the problem. 此链接有助于诊断问题。 Since my original question was "what is this error?" 由于我最初的问题是“这是什么错误?” Here is the answer courtesy of @WhozCraig 这是@WhozCraig提供的答案

0xC0000417, equivalent to STATUS_INVALID_CRUNTIME_PARAMETER. 0xC0000417,等同于STATUS_INVALID_CRUNTIME_PARAMETER。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM