C/C++ guys, need your help.

notfred

Lifer
Feb 12, 2001
38,241
4
0
My program compiles as 1 file, but not when broken up into multiple files. It complains about "undefined references" to the functions in my other files. there are .h files with function prototypes that are very clearly listed with #include "file.h" at the top of my .c file. All the files are in the same directory. I'm using gcc on linux.

here's a zipfile with everything in it. (right click, save as)
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
well, crap, it compiles when I use gcc correctly, thanks bornstar18.

Now I have to write a makefile....
 

BornStar

Diamond Member
Oct 30, 2001
4,052
1
0
I wish I could help you with that one, but I don't know how to do it. Good luck.