a.h has 3 functions only and does not include anything
p.c has one function i made called go
t.c has a main function and calls the go function, it includes a.h only
i run the program using
gcc -Wall -g -o t p.c t.c
but i get a warning, implicet declaration of the go function.
whats wrong here? how do i fix it?
By rule , the declaration of the function should be present in that translation unit(file) where the function is called.
So take care to include the declaration of the function "go" in t.c or a.h and the warning will disappear.