Dev C ++编译器构建错误

时间:2012-03-31 04:48:27

标签: c++

我正在使用名为DevC ++版本5.1.0.0的编译器。它在我开始编写程序时起作用,但现在给我带来了很多麻烦。每次执行语法错误都没有出现,但是程序仍然没有执行,程序 完美地使用visual c ++。有什么问题,请帮忙,因为我已经花了好几个小时。我该怎么办?

错误如下:

D:\Cpp\Assingnment 3\solution\2\Makefile.win [Error] [implementation.o] Error 1 (if this is the only error: please check your library includes)  

我尝试了Dev C +的所有版本,但它显示的相同。

日志文件如下所示:

Compiler: MinGW GCC 4.6.2 32-bit
Building Makefile: "D:\Cpp\Assingnment 3\solution\2\Makefile.win"
Executing  make...
mingw32-make.exe -f "D:\Cpp\Assingnment 3\solution\2\Makefile.win" all
g++.exe -c implementation.cpp -o implementation.o -I"E:/Program Files/Dev-Cpp/MinGW32/include"   

'E:\DOCUME~1\@$L@' is not recognized as an internal or external command,
operable program or batch file.
mingw32-make.exe: *** [implementation.o] Error 1

Execution terminated

MakeFile.win包含:

# Project: Project1
# Makefile created by Dev-C++ 5.1.1.0

CPP      = g++.exe
CC       = gcc.exe
WINDRES  = windres.exe
OBJ      = implementation.o main.o $(RES)
LINKOBJ  = implementation.o main.o $(RES)
LIBS     = -L"E:/Program Files/Dev-Cpp/MinGW32/lib" -static-libstdc++ -static-libgcc  
INCS     = -I"E:/Program Files/Dev-Cpp/MinGW32/include" 
CXXINCS  = -I"E:/Program Files/Dev-Cpp/MinGW32/include" 
BIN      = Project1.exe
CXXFLAGS = $(CXXINCS)  
CFLAGS   = $(INCS)  
RM       = rm -f

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

all: all-before Project1.exe all-after


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

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

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

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

1 个答案:

答案 0 :(得分:1)

我有同样的问题,我一直在研究和排除故障3周。但我发现的是:在'执行'下点击'清洁'。这对我有用。