Dear all,
has some of you got Lite-C to compile multiple *.c files like a normal c compiler does? When I remember correctly, this was only possible by including *.c files (with #include "unit1.c"), which is really not a good programming style.
If I for example do this:
The prototype of PrintMsg() is defined in unit1.h. PrintMsg() is implemented in unit1.c:
#include <acknex.h>
function PrintMsg(STRING* msg)
{
error(msg);
}
This is the very straight forward way how information hiding using multiple *.c files is implemented in standard C. But in Lite-C this leads to a "Empty function called in main" error during runtime. Has anybody got this running, or are multiple *.c files simply not suported by the compiler/linker?
Thanks for clarification!