Reputation:
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
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.
Upvotes: 1
Views: 18969
Reputation: 38332
The filename #3.cpp breaks your makefile, makes it invalid, such name is treated as a comment. 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
Upvotes: 2