本文介绍了Cygwin编译错误:“此应用程序已请求运行时以不寻常的方式终止它”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图运行Cygwin,我遇到了一些问题。我试图编译一个程序,在Windows上使用mingw和在Unix系统上,但当我去通过Cygwin编译:

I am trying to run Cygwin, and I am running into some problems. I tried to compile a program that works both on Windows with mingw and on a Unix system, but when I go to compile it through Cygwin:

gcc threads.c -o threads

我得到错误:
此应用程序已请求运行时以不寻常的方式终止它

这是它...任何想法我忘记或拧紧?我在5年左右没有碰这个东西,所以我生锈了。感谢!

And that's it... any ideas what I am forgetting or screwing up? I haven't touched this stuff in about 5 years so I am beyond rusty; thanks!

推荐答案

错误消息表示编译器在尝试构建程序时崩溃。

The error message means the compiler crashed while trying to build your program.

很可能这意味着您的Cygwin安装已损坏或恰好包含一个损坏的gcc版本。尝试更新到当前版本的Cygwin。这是双重的情况下,Cygwin 1.7和GCC 4的第一个稳定版本是最近的事件。如果你还在Cygwin 1.5或GCC 3.x,我认为有一个很好的机会,升级会修复你的症状。

Most likely this means your Cygwin installation is corrupt or happens to include a broken version of gcc. Try updating to the current version of Cygwin. This is doubly the case given that Cygwin 1.7 and the first stable releases of GCC 4 are both recent happenings. If you're still on Cygwin 1.5 or GCC 3.x, I think there's an excellent chance that upgrading will fix your symptom.

这篇关于Cygwin编译错误:“此应用程序已请求运行时以不寻常的方式终止它”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 02:06