Does every .h file have a corresponding object file?
问题 I'm trying to write a makefile, but I don't really understand how object files work. There are no .o files in my folder, so how can I be compiling them? Does every .h file have a corresponding .o ? If not, then how do we know if we have to compile an object file or not? Sorry if these are stupid questions, I'm new to programming. Thank you. 回答1: Basically the header (.h) files tell the compiler that things exist when it's generating the object (.o) files. The compiler generates object files