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

KW> 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 
or
  > WE> the c0.ASM file and I don't have any .asm files on my system.....
KW>Search through the code for 'main()' or just 'main(' thats the problem. 
he
  >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.
KW>if you find main() this is what you might also find
KW>#ifdef TEST
  >main()
  >{
  >        stuff();
  >}
  >to correct the above to use it. change it to this
  >#define TEST
  >#ifdef TEST
  >main()
  >{
  >        stuff();
  >}
KW>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..
KW>I use an Amiga so thats one of my permanent settings.
Ok..... I'll do that..... Thanx for the help.....
 * QMPro 1.53 * ¯ìûÔÔh·¤ ŽCþhanks for hanging up, dear.
--- PCBoard (R) v15.3/5
---------------
* Origin: The Town Square BBS 209-824-2644 (1:208/401)

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™.