WE> I'm having some trouble with compiling some software that a friend sent
WE> me..... Every time that I try to compile it I get Error Undefined
WE> symbol _main in module c0.ASM..... Can anyone help me? I've looked for
WE> the c0.ASM file and I don't have any .asm files on my system.....
Search through the code for 'main()' or just 'main(' thats the problem. the
asm c0.asm is referring to is the asm created by your compiler. If there
isn't a main() function, can't help ya. If there is one, look above it for
some kind of
#ifdef TEST or something like that, then define it ahead of the ifdef or
remove ifdef. Best to #define TEST than remove the ifdef as there might be a
need for TEST to be defined elsewhere in the program.
if you find main() this is what you might also find
#ifdef TEST
main()
{
stuff();
}
to correct the above to use it. change it to this
#define TEST
#ifdef TEST
main()
{
stuff();
}
Or make the define a global. Safest way I know of is to have TEST, and DEBUG
as permanent defines in the compiler.
Also if you are picking up generic code, it's a good idea to define your
specific machine also ie: add #define MSDOS, WATCOM,__cplusplus, AMIGA etc..
I use an Amiga so thats one of my permanent settings.
* AmyBW v2.14 *
--- GEcho 1.00
---------------
* Origin: Static Line C= Support 407-633-6855 (1:374/128)
|