It just means the '__DBGENTRY' function is not part of your program and has not been found in any static librairies defined into the MK.BAT builder. So, either you remove each call to this func from your source code - or - you adjust the link section of your MK.Bat in order to specify the fullpathname of the static library that contains __dbgentry().
+1 Wilson. I've already encountered this problem a couple months ago when porting an old console app to gui. I just had to remove -b options from the compilation batch and hey presto!