When I try to "Build Project" which uses PICC (HI-TECH C Compiler for PIC10/12/16 MCUs (Lite Mode) V9.83) which contains multiple source files, it fails with message like this "...bin/hitech/picc/9.83/sources/float.c 86 : main function "_main" not defined", build command is autogenerated and looks like this (sample code)
"/home/<user>/bin/hitech/picc/9.83/bin/picc --ERRFORMAT --WARNFORMAT --MSGFORMAT --CHIP=16F877 --IDE=mplab -Q -C -I/home/<user>/MCU/projects/clock/ lcd.c "
and project has two headers files (which are OK and probably doesn't affect this) and two source files lcd.c and rtc.c, and when you try to compile it uses only one files (maybe if this passes it will try to compiles second one, but picc supports multiple source files), for example testing this in a command line returns no error message/s (also merging every source file in one fixes the problem).
command line test:
~/bin/hitech/picc/9.83/bin/picc --ERRFORMAT --WARNFORMAT --MSGFORMAT --CHIP=16F877 --IDE=mplab -Q -C -I/home/<user>/MCU/projects/clock/ lcd.c rtc.c
using 0.16.1 (tested 0.16.2 and latest dev I think (don't have them on both systems)