2014-07-14 51 views
0

我試圖編譯代碼,但我得到這個錯誤,我不明白這一點,因爲可能改組,什麼是錯我的代碼DEVCPP製作文件錯誤

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

CPP  = g++.exe 
CC  = gcc.exe 
WINDRES = windres.exe 
OBJ  = main.o 
LINKOBJ = main.o 
LIBS  = -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib" -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib" -static-libgcc 
INCS  = -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.8.1/include" 
CXXINCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.8.1/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.8.1/include/c++" 
BIN  = Project1.exe 
CXXFLAGS = $(CXXINCS) 
CFLAGS = $(INCS) 
RM  = rm -f 

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

all: all-before $(BIN) all-after 

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

$(BIN): $(OBJ) 
    $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS) 

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

回答

0

不知道#2 publising文字的時候,但我的印象是,在代碼的最後一行:

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

$(BIN): $(OBJ) 
     $(CPP) $(LINKOBJ) -o $(BIN) $(LIBS) 

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

你應該開始$行前的製表符(和一個!)。 沒有空格或別的東西。