Hi! I've just created a program (.c) and a header (.h) file with all the functions that I use in my program. Of course I don't have any main() function in the header file, which gives me an error: "Undefined symbol _main in module c0.ASM" if I run the .h file. I've also added a line, tellingto the .c file and if I run the .c file, everything works without errors. So what is the correct way of creating a project? Should the .h file include a main function (which will result to multiple main() declaration) ?Code:#include "functions.h"
p.s. I'm using Borland C++ 3.1



LinkBack URL
About LinkBacks



