2
我正在使用名为DevC++版本5.1.0.0的编译器。它在我开始编写程序时起作用,但现在给我带来了很多麻烦。每次我执行一个语法错误没有出现,但程序仍然不执行,程序 完美地与visual C++一起工作。有什么问题,并请帮助,因为我已经花了数小时。我该怎么办?Dev 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)
我试图开发的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\@[email protected]' 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)
尝试安装开发-CPP到C:\开发-CPP,而不是或不具有名称包含空格的任何其他目录。 – nikhil 2012-03-31 05:47:25
我dev C++的路径是E:\ Dev-Cpp,尽管路径D:\ Cpp \ Assingnment 3 \ solution \ 2是我的分配文件夹,其中存储了dev C++项目文件,但我也更改了项目文件夹名称,但是问题是一样的 – Youmair 2012-03-31 06:37:10
除此之外,还应该有其他错误消息 – 2015-05-17 04:34:42