【问题标题】:mingw5.4 : cannot open output file /home/user1/test.o: No such file or directorymingw5.4:无法打开输出文件/home/user1/test.o:没有这样的文件或目录
【发布时间】:2017-04-25 11:02:49
【问题描述】:

我正在使用 mingw5.4 使用命令构建我的 test.c:

/software/mingw5.4/bin//x86_64-w64-mingw32-gcc test.cxx -o /home/user1/test.o

但我收到以下错误:

    c:/cygwin64_new/home/admin/software/mingw5.4/bin/../lib/gcc/x86_64-w64-mingw32/5.4.0/../../../../x86_64-w64-mingw32/bin/ld.exe: 
cannot open output file /home/user1/test.o: No such file or directory

如果我使用版本 mingw4.8.3 相同的文件编译正常。

 /usr/bin/x86_64-w64-mingw32-gcc test.cxx -o /home/user1/test.o

如果有人知道版本mingw5.4 的错误原因,请告诉我。

【问题讨论】:

    标签: windows gcc cygwin mingw


    【解决方案1】:

    哈哈。我已经做到了。在 *nix 系统上有一个名为 test 的命令。有些外壳内置了它(为了速度)。尝试运行 ./testtext.exe 或调用其他可执行文件。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-10-08
      • 2018-01-20
      • 1970-01-01
      • 2020-07-28
      • 2023-04-06
      • 2019-04-07
      • 2017-05-04
      相关资源
      最近更新 更多