移植 DevC++到Linux

发布于 2024-09-06 19:56:13 字数 458 浏览 1 评论 0原文

我想在 Linux 上使用 DevC++,所以我用 Wine 启动它,一切正常,直到它运行该文件。

C 文件编译良好,生成了一个能够在 Linux 上运行(没有 Wine)的 .exe 文件,

$ file '/media/F6AC746BAC74286F/Dev-Cpp/work/hello_on_nix.exe' 
/media/F6AC746BAC74286F/Dev-Cpp/work/hello_on_nix.exe: PE32 executable for MS Windows (console) Intel 80386 32-bit
$ '/media/F6AC746BAC74286F/Dev-Cpp/work/hello_on_nix.exe' 
Hello World!

但问题是当我从 IDE 内部运行这个文件时,它显示一个非常小的窗口,不显示任何内容如果我关闭它,我就会关闭整个 IDE。

I wanted to use DevC++ on Linux, so I've started it with Wine and everything is OK until it came to run the file.

The C file compiles well and a .exe files generated that is able to run on Linux (without Wine)

$ file '/media/F6AC746BAC74286F/Dev-Cpp/work/hello_on_nix.exe' 
/media/F6AC746BAC74286F/Dev-Cpp/work/hello_on_nix.exe: PE32 executable for MS Windows (console) Intel 80386 32-bit
$ '/media/F6AC746BAC74286F/Dev-Cpp/work/hello_on_nix.exe' 
Hello World!

But the problem is when I come to run this file from inside the IDE, it shows a very small window that doesn't show any thing and if I close it, I get the entire IDE to get closed.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

醉态萌生 2024-09-13 19:56:13

你从命令行运行过 wine 吗?命令行上是否有“FIXME”警告?

Have you run wine from the command line? Are there "FIXME" warnings on the command line?

海风掠过北极光 2024-09-13 19:56:13

您看过 AnjutaKdevelop

Have you looked at Anjuta or Kdevelop?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文