I have included a header file in my c-file, laying in the same folder. The header file refers to a function in another c-file, also in the same folder. But when I try to call that function it is not found, it says "undefined reference to ...". How do I do to make my compiler find the function? Why shouldn't I just include the other c-file in my first c-file as well as the header file? Wouldn't it be like splitting up a large c-file into a couple of smaller files?
I am using WinXP and DevCpp.