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