can anyone let me know if i need to compile a header file that i have written myself
can anyone let me know if i need to compile a header file that i have written myself
I've split this from your previous question since it was off-topic bump.
You don't compile header files as such, you include them in other source files (which are then compiled).
func.h - tells other source files what goodies exist in func.c
func.c - contains all the details
main.c would have
Finally, to build everything, you would doCode:#include "func.h"
Code:gcc main.c func.c