Hello!
I'm trying to learn c++ from the ground up so I'm figuring out makefiles.
I haveAnd when I type make I getCode:CPP = g++ OFLAG = -o .SUFFIXES : .o .cpp .cpp.o : $(CPP) -c $< stw: main.o PieceClothing.o $(CPP) $(OFLAG) main main.o PieceClothing.o PieceClothing.o: PieceClothing.cpp PieceClothing.h main.o: main.cpp PieceClothing.hWhat am I doing wrong?Code:make: *** No rule to make target `main.cpp', needed by `main.o'. Stop.
Shouldn't the suffix rule take care of a target for main.cpp?



LinkBack URL
About LinkBacks


