Cygwin 编译错误:“此应用程序已请求运行时以异常方式终止它" [英] Cygwin compiling error: "this application has requested the runtime to terminate it in an unusual way"
问题描述
我正在尝试运行 Cygwin,但遇到了一些问题.我试图用 mingw 和 Unix 系统编译一个可以在 Windows 上运行的程序,但是当我通过 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 编译错误:“此应用程序已请求运行时以异常方式终止它"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!