TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: WILL ECKARD
from: CLIFF RHODES
date: 1997-06-25 09:47:00
subject: Help

--> Will Eckard wrote to All  <--
WE>I'm having some trouble with compiling some software that a friend
WE>sent me..... Every time that I try to compile it I get Error
WE>Undefined symbol _main in module c0.ASM..... Can anyone help me?
WE>I've looked for the c0.ASM file and I don't have any .asm files on
WE>my system.....  
Will, the linker is complaining, not the compiler. Is the code your 
friend gave you a complete program or just some C/C++ routines? A 
complete C/C++ program must have a function named main(). When you 
link, the module c0.obj (created by Borland from c0.ASM) calls a 
function main() (it uses _main internally, but don't worry about 
that).
If your code doesn't have a main() function, the linker can't find it 
for c0.obj and exits with an error.
Cliff Rhodes
cliff.rhodes@juge.com
crhodes@flash.net
X CMPQwk 1.42 1692 X"Love makes time pass. Time makes love pass." - French 
Proverb
--- Maximus/2 3.01
---------------
* Origin: COMM Port OS/2 juge.com 204.89.247.1 (281) 980-9671 (1:106/2000)

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