Hi, I'm trying to use a makefile, but for some reason I am receiving this error:
"make: *** No rule to make target `main.oo', needed by `main.o'. Stop."
I am puzzled, because I've had to previously use makefile and I used that as a template. They appear to be the same (except this one had only one .cc and .h file each) and the previous one worked.
lines: line.o main.o
g++ line.o main.o -o lines
line.o: line.cc line.h
g++ -c line.cc
main.o: main.oo line.h
g++ -c main.cc
main.o: main.cc line.h
You put oo instead of cc. That's the problem.
What a rubbish mistake. Thank you.