简体   繁体   English

目标配方失败

[英]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.

相关问题 用于目标的Dev-C ++食谱失败 - Dev-C++ Recipe for Target Failed 目标“Project1.exe”的配方失败 - recipe for target 'Project1.exe' failed 目标'.build-impl'的配方失败 - Recipe for target '.build-impl' failed Makefile有问题,“目标'rgbapixel.o'的配方失败” - Makefile trouble, getting “recipe for target 'rgbapixel.o' failed” 目标“全部”的 CMake 配方失败。 库错误 - CMake recipe for target 'all' failed. Library error suriyaaOS - Windows 10 上的 Cygwin - Makefile-error: 目标“modules/ext2.o”的配方失败 - suriyaaOS - Cygwin on Windows 10 - Makefile-error: recipe for target 'modules/ext2.o' failed LLVM编译:目标'../lib/IR/Release+Asserts/Intrinsics.gen.tmp'的配方失败 - LLVM compile: recipe for target '../lib/IR/Release+Asserts/Intrinsics.gen.tmp' failed Makefile | Make 后清理 - 错误:没有这样的文件或目录 | 错误:目标配方 * 失败 - Makefile | Cleaning up after Make - Error: No such file or directory | Error: recipe for target * failed 单目总捕获编译过程错误:Makefile:83:目标'CMakeFiles/mylib.dir/all'的配方失败 - Monocular Total Capture compilation process error : Makefile:83: recipe for target 'CMakeFiles/mylib.dir/all' failed 目标'o.le-v7-g / .moc / moc_applicationui.cpp'的配方失败 - recipe for target 'o.le-v7-g/.moc/moc_applicationui.cpp' failed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM