简体   繁体   English

Dev c++ mingw 不再编译

[英]Dev c++ mingw no longer compiles

I'm using Dev C++ 4.9.9.2 and my programs stopped compiling since yesterday.我正在使用 Dev C++ 4.9.9.2 并且我的程序从昨天开始停止编译。 My compiler error just looks like this:我的编译器错误看起来像这样:

 F:\Program\Makefile.win [Build Error]  [Program.exe] Error 1 

With the compile log messages being:编译日志消息为:

Compiler: Default compiler
Building Makefile: "F:\Program\Makefile.win"
Executing  make...
make.exe -f "F:\Program\Makefile.win" all
gcc.exe Untitled1.o  -o "Program.exe" -L"F:/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: *** [Program.exe] Error 1

Execution terminated

And this is my makefile for a newly made project:这是我新建项目的 makefile:

# Project: Program
# Makefile created by Dev-C++ 4.9.9.2

CPP  = g++.exe
CC   = gcc.exe
WINDRES = windres.exe
RES  = 
OBJ  = main.o $(RES)
LINKOBJ  = main.o $(RES)
LIBS =  -L"F:/Dev-Cpp/lib"  
INCS =  -I"F:/Dev-Cpp/include" 
CXXINCS =  -I"F:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"F:/Dev-Cpp/include/c++/3.4.2/backward"  -I"F:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"F:/Dev-Cpp/include/c++/3.4.2"  -I"F:/Dev-Cpp/include" 
BIN  = Program.exe
CXXFLAGS = $(CXXINCS)  
CFLAGS = $(INCS)  
RM = rm -f

.PHONY: all all-before all-after clean clean-custom

all: all-before Program.exe all-after


clean: clean-custom
    ${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
    $(CPP) $(LINKOBJ) -o "Program.exe" $(LIBS)

main.o: main.cpp
    $(CPP) -c main.cpp -o main.o $(CXXFLAGS)

I've tried reinstalling mingw and linking a new compiler profile to it, and I've also tried reinstalling Dev C++ but this problem persists.我尝试重新安装 mingw 并将新的编译器配置文件链接到它,我也尝试重新安装 Dev C++ 但这个问题仍然存在。

Both new projects and old projects that have previously compiled fine no longer compile... Has anyone had any similar issues?以前编译好的新项目和旧项目都不能编译了……有没有人遇到过类似的问题?

Something with the linker refused to work for me. linker 的东西拒绝为我工作。 I installed mingw using TDM-GCC and made a new compiler profile for that, which ended up working.我使用 TDM-GCC 安装了 mingw 并为此制作了一个新的编译器配置文件,最终可以正常工作。

I'm still at a loss for why the included mingw suddenly stopped working and didnt work properly even after reinstalling.我仍然不知道为什么包含的mingw突然停止工作并且即使在重新安装后也不能正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM