3a6 Subj : Linking a Hello Program To : borland.public.cpp.borlandcpp From : Randy Stonesifer Date : Thu May 26 2005 12:19 pm I am new to BC++5.5.1. I can create, compile and run a hello program using bcc32. I am now trying to use a makefile to first compile (-c option) and then, as a separate operation, link (using ilink32). The compilation works, and a hello.exe file is created by ilink32. But the hello.exe when executed produces a window that says hello.exe is not a valid win32 application. I tried -ap and -Tpe with ilink32 with no success. The hello.exe are always about 2K in size while the bcc32 created version that runs is about 130K. What am I doing wrong? Are there other .obj or .lib files that need to be included in the link? I cannot understand why ilink32 would not default to the same behavior as when it is invoked automatically by bcc32. Thanks for any help. Randy . 0