C Run-Time Error R6021

no main procedure

The program does not have a procedure called main.

Make sure that all object and library modules have been linked into the executable.