Subj : Borland's example, but doesn't link To : borland.public.cpp.borlandcpp From : "Rob C" Date : Wed Jul 09 2003 02:55 pm My deepest thanks to all those who have helped me in the past. The following code is directly out of the computer, yet it doesn’t link. I suspect it maybe has to be compiled/linked as a project with certain settings - yet the book doesn’t tell me that. //---------------------------------------------------------------------------- // ObjectWindows - (C) Copyright 1991, 1994 by Borland International // Tutorial application -- step01.cpp //---------------------------------------------------------------------------- #include #include #include class TDrawApp : public TApplication { public: TDrawApp() : TApplication() {} void InitMainWindow() { SetMainWindow(new TFrameWindow(0, "Sample ObjectWindows Program")); } }; int OwlMain(int /*argc*/, char* /*argv*/ []) { return TDrawApp().Run(); } ERRORS I GET - Info :Making... Info :Linking C:\BC5\EXAMPLES\OWL\TUTORIAL\step01.exe Error: Error: Unresolved external '_main' referenced from C:\BC5\LIB\C0X32.OBJ .