VC++ 内部编译器错误
我收到以下错误,有人可以帮助我如何修复它吗?
致命错误 C1001:内部编译器 错误(编译文件 'f:\vs70builds\3077\vc\Compiler\CxxFE\sl\P1\C\pdbmgr.cpp', 第 149 行) 请选择技术 支持Visual C++上的命令 帮助菜单,或打开技术 支持帮助文件以获取更多信息
Iam getting the following error , could some one help me how to fix it .
fatal error C1001: INTERNAL COMPILER
ERROR (compiler file
'f:\vs70builds\3077\vc\Compiler\CxxFE\sl\P1\C\pdbmgr.cpp',
line 149) Please choose the Technical
Support command on the Visual C++
Help menu, or open the Technical
Support help file for more information
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
不,你完蛋了。 您所做的事情在编译器中暴露了错误。 尝试优化设置、#pragmas 并摆弄您的代码,直到它正常工作。
也许还可以在 connect.microsoft.com 上提交错误报告
Nope, you're screwed. You've done something that exposed an error in the compiler. Play with optimization settings, #pragmas and fiddling with your code until it works.
And perhaps submit a bug report on connect.microsoft.com
内部编译器错误(编译器文件文件,行号)
编译器无法为构造生成正确的代码,可能是由于表达式和优化选项的组合所致。 尝试删除一个或多个优化选项,然后重新编译包含错误消息中指示的行的函数。
您或许可以通过删除一个或多个优化选项来解决该问题。 要确定哪个选项有问题,请一次删除一个选项并重新编译,直到错误消息消失。 最常见的选项是 /Og、/Oi 和 /Oa。 一旦确定了哪个选项负责,您可以使用发生错误的函数周围的优化编译指示来禁用它,并继续对模块的其余部分使用该选项。
Microsoft 知识库有有关 C1001 的更多信息; 请参阅 http://support.microsoft.com/default.aspx ?scid=kb;en-us;134650。
INTERNAL COMPILER ERROR(compiler file file, line number)
The compiler cannot generate correct code for a construct, probably due to the combination of an expression and an optimization option. Try removing one or more optimization options and recompiling the function containing the line indicated in the error message.
You can probably fix the problem by removing one or more optimization options. To determine which option is at fault, remove options one at a time and recompile until the error message goes away. The options most commonly responsible are /Og, /Oi, and /Oa. Once you determine which option is responsible, you can disable it using the optimize pragma around the function where the error occurs and continue to use the option for the rest of the module.
The Microsoft Knowledge Base has more information about C1001; see http://support.microsoft.com/default.aspx?scid=kb;en-us;134650.
这是一件非常不幸的事情。 此类迹象偶尔会出现一次,没有明显的原因。 甚至 MSDN 也建议查看代码并在那里使用优化编译指示。 您必须检测是什么构造导致此指示并以某种方式重写它。 或者您可以使用较新版本的 VC++。
That's a very unfortunate thing. Such indications appear once in a while for no apparent reason. Even MSDN recommends to go to the code and play with optimization pragmas there. You have to detect what construct causes this indication and rewrite it somehow. Or you can use a newer version of VC++.
其他答案是正确的,您可以尝试解决编译器错误,但它仍然存在。 补充一下,与此同时,微软引入了自动错误报告,以便用户可以了解这些错误,并可能在未来的版本中修复它们。 该标志称为
/errorReport
。请参阅 https ://learn.microsoft.com/de-de/cpp/build/reference/errorreport-report-internal-compiler-errors?view=vs-2019
The other answers are right, you can try to work around a compiler error, but it is still there. To add, in the meantime Microsoft introduces an automatic error report so that the can know about these errors and might be able to fix them in a future release. The flag is called
/errorReport
.See https://learn.microsoft.com/de-de/cpp/build/reference/errorreport-report-internal-compiler-errors?view=vs-2019
我已经解决这个问题好几天了。
重点是项目的存储位置。 如果是网络驱动器或云,则可能会出现此类问题。 我在云 mail.ru 中创建了一个项目,并收到错误 C1001。
只需将项目转移到HHD/SSD
I have been solving this problem for several days.
The point is where the project is stored. If it is a network drive or a cloud, then such problems may occur. I created a project in the cloud mail.ru and got the error C1001.
Just transfer the project to HHD/SSD