You need to compile all the .c files together, or if you've already compiled one file, link in the appropriate .o file that was created.