Ok, I've practically finished this little program and then when I go to compile some source files together, it says I am calling undefined functions. In my book they have a program that is basically set up like this:
main calls menu() and main contains a printf("end\n"); so that when control is finally returned to main from menu() (in which case the user selected the "exit" option, it lets them know it's finished.
menu is in it's own "menu.c" file.
menu asks user what he wants to do and then executes some functions according to what the user picks.
Functions are contained in a "ops.c" file which also grabs some other function from a header file.
As soon as each function in the ops file completes, control is returned to menu (menu(); at the end of each function in ops.c).
Well, I tried to do that very thing. But for some reason when I try to compile it, it says my menu file contains undefined references to my functions contained in my ops file. I don't understand because I DID define the function in the ops file and they are not declared static.
I keep comparing my program to the one in my book and I can't find what I have done wrong. Help would be appreciated. Thanks.