【问题标题】:Running a Hello World application in Eclipse C++ in Windows在 Windows 的 Eclipse C++ 中运行 Hello World 应用程序
【发布时间】:2012-02-26 17:19:48
【问题描述】:

我刚刚下载并投入运行 Eclipse C++、Windows 以及 MinGW(我已将其 bin/ 目录设置在 PATH 变量中)。

在尝试编译 Hello World 程序时,我收到以下错误:

**** Build of configuration Default for project tests ****

(Cannot run program "make" (in directory "D:\lixo\eclipse_cpp\workspace\tests"): CreateProcess error=2, The system cannot find the file specified)

尝试从命令行运行make 命令没有产生任何结果,所以我发现MinGW 的make 被称为MinGW32_make.exe。我已将文件重命名为make.exe,但问题仍然存在。

我错过了什么?

【问题讨论】:

  • 对我来说是 mingw32-make.exe
  • 是的,这里也是这样。
  • 我在 64 位日食。这可能是个问题吗?
  • 我在使用 64 位版本的 eclipse cdt 时遇到问题。我决定切换到 32 位版本。我不知道这是否会解决你的问题。如果您决定使用 32 位,您也必须下载 32 位 java。

标签: c++ windows eclipse makefile mingw


【解决方案1】:

改为运行 32 位 Eclipse,并确保您正在运行 MinGW 工具链。

不是解决方案,但通常是足够好的解决方法。

【讨论】:

    猜你喜欢
    • 2016-04-24
    • 2012-08-16
    • 2018-11-26
    • 2017-02-01
    • 1970-01-01
    • 2017-08-07
    • 2020-05-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多