Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!apple!lsr From: lsr@Apple.COM (Larry Rosenstein) Newsgroups: comp.sys.mac.programmer Subject: Re: Help on "C++ Programming with MacApp" book needed Message-ID: <12746@goofy.Apple.COM> Date: 26 Mar 91 19:07:32 GMT References: <1991Mar3.161029.16931@Informatik.TU-Muenchen.DE> <9612@hub.ucsb.edu> <49879@apple.Apple.COM> Organization: Apple Computer, Inc. Lines: 29 In article <49879@apple.Apple.COM> marc@Apple.COM (Mark Dawson) writes: >In article <9612@hub.ucsb.edu> 6600dtam@ucsbuxa.ucsb.edu (Marc "Tae-Kwon" Tamsky) writes: >> >>I have the same problem with MacApp and C++... I get: >>### Link: Error: Main code (-m option) name not found. (Error 53) %__MAIN >> >>I'm using System 6.0.5 on a IIfx, MultiFinder, MPWShell3.2b8, >>MacApp2.0.1, C++ v3.1, C v3.1. > >I believe the problem is that you're linking with the wrong libraries...you >should be linking with "{libraries}"runtime.o, NOT "{CLibraries}"CRuntime.o >(as you would have in MPW 3.1). Assuming that Mark is right about the immediate cause, then the problem ight be that you are using a different version of MPW from the libraries. To account for library changes from MPW 3.1 to 3.2, the MacApp build tool checks the shell variable MPWVersion to see which version of the shell you are running. So running a 3.2bx shell with the 3.1 libraries might cause problems. You can try setting {MPWVersion} to 3.1 temporarily and see if that helps. THe real fix would be to get the 3.2 version of the C libraries. -- Larry Rosenstein, Object Specialist Apple Computer, Inc. 20525 Mariani Ave, MS 3-PK Cupertino, CA 95014 AppleLink:Rosenstein1 domain:lsr@Apple.COM UUCP:{sun,voder,nsc,decwrl}!apple!lsr