【发布时间】: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 消息。在询问有关构建错误的问题时,请始终包含 full 和 complete 以及 unedited 输出。最好是完整构建日志的普通复制粘贴。
-
@Someprogrammerdude 谢谢你的评论。我添加了更多信息。我不确定这是不是你的意思,
标签: c++ windows windows-10 dev-c++ windows-98