Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!ksand From: ksand@Apple.COM (Kent Sandvik) Newsgroups: comp.sys.mac.programmer Subject: Re: Problems with C++/MacApp Keywords: C++, MacApp, Bug Message-ID: <47482@apple.Apple.COM> Date: 19 Dec 90 01:04:42 GMT References: <1990Dec18.221005.6784@mmm.serc.3m.com> Organization: Apple Computer Inc., Cupertino, CA Lines: 45 In article <1990Dec18.221005.6784@mmm.serc.3m.com> us015029@3M.Com (John E. Collins) writes: >Greetings - > >I am an experienced programmer (Lisp, C, Pascal, etc.) who needs to >learn C++ and Macintosh programming, so I thought I would pick up a copy >of MacApp and the C++ package. I have so far been unsuccessful getting >any of the C++ example programs to compile. The Pascal examples compile >and run OK, and the non-MacApp C++ examples seem to work as well. Here >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >MABuild Nothing >MABuildTool - v. 2.0 Release 3/22/90 Start: 22:02:55 12/17/90 > >Copyright Apple Computer, Inc. 1986-1990 >All Rights Reserved. > >Target Folder: "Internal Disk:MacApp:CPlusExamples:Nothing:.Non-Debug Files:" >AutoMaking: Nothing >Compiling: Nothing.cp ># C - Fatal Error : 430 ># unexpected token in the token input file >I have MPW 3.1 with C & C++, MacApp 2.0, and System 6.0.3 on an SE/30. >I am using the -mf option to C++ and have set the MPW Shell application >size to 2M and the stack to 96K. I'm pretty sure that you are using the MPW 3.1 C tool, switch to the MPW 3.2b1 C tool - which is part of the MPW C++ 1.0 package (anyone tired of release numbers yet?). This will cure the problem. The release notes for C++ final says that you could use the MPW C 3.1 C compiler, as long as you don't need load/dump. Well, we found out that it did not work with MacApp 2.0, and the best way just now is to use the supported combination of MPW C++ 1.0 final and MPW 3.2b1 (or higher) C tool. The error refers to an unexpected token generated by the CFront, which the C compiler can't comprehend. Regards, Kent Sandvik -- Kent Sandvik, Apple Computer Inc, Developer Technical Support NET:ksand@apple.com, AppleLink: KSAND DISCLAIMER: Private mumbo-jumbo Zippy says: "With C++ we now do have the possibilities to inherit dangling pointer problems"