TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: WILL ECKARD
from: KEN WAUGH
date: 1997-06-25 15:47:00
subject: Re: Help

 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.