Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!uunet!timbuk!cs.umn.edu!quest!orbit!kksys!jhereg!andrew From: andrew@jhereg.osa.com (Andrew C. Esh) Newsgroups: comp.sys.mac.programmer Subject: Re: Help on "C++ Programming with MacApp" book needed Message-ID: <1991Mar4.204618.6045@jhereg.osa.com> Date: 4 Mar 91 20:46:18 GMT References: <1991Mar3.161029.16931@Informatik.TU-Muenchen.DE> <9612@hub.ucsb.edu> Organization: Open Systems Architects, Inc., Mpls, MN Lines: 46 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 >### Link: Error: No Main code module or entry point. (Error 38) >### Link: Errors prevented normal completion. > >on every compile using MABuild. > >I'm using System 6.0.5 on a IIfx, MultiFinder, MPWShell3.2b8, >MacApp2.0.1, C++ v3.1, C v3.1. > >I was about to send a message to apple, but I hope someone >has a solution that they can share. > >Thanks, >Marc Tamsky. >6600dtam@ucsbuxa.ucsb.edu > >-- >= Marc Tamsky Under Capitalism, man expoits man. = >= 6600dtam@ucsbuxa.ucsb.edu Under Communism, it's just the opposite. = >= POB 12600, UCSB -J K Galbraith. = >= Santa Barbara, CA 93107 (805)-562-5645 = I answered this same question about three weeks ago. Maybe we should put together a really solid solution to it, and include it in a FAQ file. The problem is your symbol table is getting overwritten. Go into the command line options for the C++ compiler and the linker and turn on all options that will dump informatin about symbol tables. You will see that the first few entries get corrupted, depending on the amount of code you are compiling. It's been so long since I solved this problem that I do not remember what the solution is, exactly. I think it has to do with increasing the size of the MPW memory, adding -mf to the linker options, increasing the size of the MPW stack (see Appendix I in the Vol 1 manual), or updating the compiler version. Someone with more recent experience should give more specific help with this. Please EMail me the solution, and I will save it for the next guy who finds this bug. -- Andrew C. Esh andrew@osa.com Open Systems Architects, Inc. Minneapolis, MN 55416-1528 So much System, (612) 525-0000 so little CPU time...