【问题标题】:Dev-C++ - [Build Error] [main.o] Error 2816Dev-C++ - [构建错误] [main.o] 错误 2816
【发布时间】:2017-04-28 14:15:28
【问题描述】:

我开始了一个新项目,并尝试在 Microsoft Windows 10 上使用默认值进行编译。我需要针对特定​​项目为 Windows 98 进行编译。编译器显示以下错误消息[Build Error] [main.o] Error 2816

这是main.cpp的内容:

#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
    system("PAUSE");
    return EXIT_SUCCESS;
}

我不知道这个错误是什么意思,也没有使用 Google 找到任何东西。有什么想法吗?

编辑 - 编译日志

Compiler: Default compiler
Building Makefile: "C:\Projects\prog\Makefile.win"
Executing  make...
make.exe -f "C:\Projects\prog\Makefile.win" all
gcc.exe -c main.c -o main.o -I"C:/Dev-Cpp/include"   

gcc.exe main.o  -o "prog.exe" -L"C:/Dev-Cpp/lib"  

gcc.exe: Internal error: Aborted (program collect2)
Please submit a full bug report.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.

make.exe: *** [prog.exe] Error 1

Execution terminated

【问题讨论】:

  • 我敢打赌,您显示的消息不是 only 消息。在询问有关构建错误的问题时,请始终包含 fullcomplete 以及 unedited 输出。最好是完整构建日志的普通复制粘贴。
  • @Someprogrammerdude 谢谢你的评论。我添加了更多信息。我不确定这是不是你的意思,

标签: c++ windows windows-10 dev-c++ windows-98


【解决方案1】:

也许这个答案为时已晚,但对其他人会有所帮助。

文件“make.exe”不适用于 Dev C++。 尝试下载旧版本的Dev C++和MinGW编译软件的旧文件集。

【讨论】:

    猜你喜欢
    • 2012-11-21
    • 2015-01-07
    • 2020-05-11
    • 2013-06-10
    • 2011-05-16
    • 1970-01-01
    • 2018-09-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多