CR>--> Will Eckard wrote to All <--
CR>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.....
CR>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).
CR>If your code doesn't have a main() function, the linker can't find it
>for c0.obj and exits with an error.
Ah..... I see.....So in other words Its not the whole thing..... I
have it went people do this..... Geezzz..... Ok.... This gives me a good
reason to yell at him..... :) Thanx for the help.....
* QMPro 1.53 * CARPENTERS hammer it harder.
--- PCBoard (R) v15.3/5
---------------
* Origin: The Town Square BBS 209-824-2644 (1:208/401)
|