[英]Recipe for target failed
Basically It is supposed to calculate the Federal Income of the user.基本上它应该计算用户的联邦收入。 But anytime I run it to see what is no doubt a baragge of structure errors I get this MakeFile
但是每当我运行它以查看毫无疑问的结构错误时,我都会得到这个 MakeFile
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
OBJ = #3.o
LINKOBJ = #3.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.9.2/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.9.2/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++"
BIN = HOMEWORK.exe
CXXFLAGS = $(CXXINCS)
CFLAGS = $(INCS)
RM = rm.exe -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)
#3.o: #3.cpp
$(CPP) -c #3.cpp -o #3.o $(CXXFLAGS)
Any and all help/advice is appreciated.任何和所有的帮助/建议表示赞赏。
The filename #3.cpp breaks your makefile, makes it invalid, such name is treated as a comment.文件名 #3.cpp 破坏了您的 makefile,使其无效,这样的名称被视为注释。 Rename the file, so # is not used.
重命名文件,因此不使用 #。 Surrounding it with quotation marks, "#3.cpp" and "#3.o" does not work in Makefile: GNU makefile how to and when to quote strings
用引号将其括起来,“#3.cpp”和“#3.o”在 Makefile 中不起作用: GNU makefile 如何以及何时引用字符串
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.