I have a make file that creates object files for two classes (and the main one), and one of these classes is simply defined in the .h file. In my makefile, I have a line that says
FileName.o: FileName.h
g++ -c FileName.h
but when I try to compile it, it says that it cannot find FileName.o
Do I need to create FileName.cpp to compile?
source
share