Subj : Re: Unresolved external '_main' referenced from C:\BC5\LIB\C0X32.OBJ To : borland.public.cpp.borlandcpp From : waking@idirect.com (Wayne A. King) Date : Fri Jul 25 2003 03:49 pm On Fri, 25 Jul 2003 20:07:17 +0530, "Vijay" wrote: >thats Great man Hmm, not sure if that means "that's Great, man" or "that's (a) Great man". Since my ego needs stroking, I'll take it as the latter. ;-)) >whats wrong if u did n't enable that option ("Generate underscores") You get the following error: >> >when i build this i am getting Unresolved external '_main' More specifically, the startup code and the compiler's libraries expect a prepended underscore on calls to their functions. With that option enabled, the required underscore is added automatically by the compiler. Without it you would have to add the underscore yourself to each such call. -- Wayne A. King (ba994@torfree.net, wayne.king@ablelink.org, waking@idirect.com, Wayne_A_King@compuserve.com) .