bobc@killer.DALLAS.TX.US (Bob Calbridge) (01/31/89)
I've written several programs in Turbo C that have all worked out fine. Yesterday I wrote a small routine to check out a functionality concept and receive an error message that said, in spirit if not precisely: Module '_main' missing in C0 Can anyone tell me what happened. I included <stdio.h> in the file so no problem there. Apparently its checking for the module but can't find it. It doesn't say that the file is missing. H E L P Bob
wei@hpctdls.HP.COM (Bill Ives) (02/02/89)
I have gotten that same response once when I inadvertly commented
out my main. The message can be read as module c0 ( which is something
TC always links in ) wanted to call your main() but couldn't find the
external symbol _main to do so. This is the refernce to your program
entry point and must be available at link time. I suggest checking
out your code for main -- and you can look in the map file of your
program's object code via MicroSoft's LINK with the /M option.
The command is ( if your program is called foo ):
link /M foo.obj ;
Hope this helps --- practice makes perfect when it comes to
error message interpretation.
Bill Ives
HP Colorado Telecommunications Division
#include <standard-disclaimer>