Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uwm.edu!linac!mp.cs.niu.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!ml27192 From: ml27192@uxa.cso.uiuc.edu (Mark Lanett) Newsgroups: comp.sys.mac.programmer Subject: Re: FAQ MPW C++ "main() missing question" Message-ID: <1991Jun7.072212.5314@ux1.cso.uiuc.edu> Date: 7 Jun 91 07:22:12 GMT References: <1991Jun6.224326.10385@Arco.COM> Sender: usenet@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 28 wes@arco.com (Wesley Monroe) writes: >I am having a problem I know I have seen the answer to >on the net at one time or the other. >When i go to link an C++ app, I get the following message: >### link: Error: Main code (-m option) name not found. (Error 53) %__MAIN >### link: Error: No Main code module or entry point. (Error 38) >### link: Errors prevented normal completion. >What gives? What gives is 1) you're using MacApp 2.0.0 and 2) System 7 and MPW 3.2 and therefore 3) macApp is trying to link with the 3.2 libraries even though it's not compatible with them (though the Apple guys who are running 2.0.1 think it is). Change the IF statement in MABuildTool.p on line 1428 to read "if false" and recompile (under system 6, of course) to get it to use the 3.1 libraries. >Thanx, >wes >wes@arco.com -- //----------------------------------------------------------------------------- Mark Lanett mlanett@uiuc.edu Software Tools Group, NCSA