Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!umich!umeecs!msi.umn.edu!cs.umn.edu!mmm.serc.3m.com!news From: us015029@3M.Com (John E. Collins) Newsgroups: comp.sys.mac.programmer Subject: Problems with C++/MacApp Keywords: C++, MacApp, Bug Message-ID: <1990Dec18.221005.6784@mmm.serc.3m.com> Date: 18 Dec 90 22:10:05 GMT Sender: news@mmm.serc.3m.com Reply-To: us015029@3M.Com (John E. Collins) Organization: Applications & Systems Support Services Lines: 52 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 #----------------------------------------------------------------------- --------------------------------------------------------- File "Internal Disk:MacApp:CPlusExamples:Nothing:Nothing.cp"; Find %!2455:$!1; Open "{Target}" #----------------------------------------------------------------------- --------------------------------------------------------- # C - Aborted ! ### MPW Shell - Execution of Internal Disk:MacApp:CPlusExamples:Nothing:.Non-Debug Files:Nothing.MakeIt terminated. ### MPW Shell - Execution of MABuild terminated. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pascal void TNothingApplication::INothingApplication(OSType itsMainFileType) This is the first method definition in the file. In fact, when I try to build the other examples, it consistently barfs on the first method definition in the file. What am I doing wrong?? 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. When I tried to find a description of "C - Fatal Error : 430" in the documentation, I was unable to find any sort of tabulation of errors and their meanings. Is this typical of Apple's stuff?? Thanks in advance for whatever light you can shed on this. ------------------------------------------------------------------------ John Collins Phone: +1 (612) 736 0778 3M Company FAX: +1 (612) 733 2165 3M Center, Building 260-6A-08 Internet: jecollins@3M.com St. Paul, MN 55144-1000 ------------------------------------------------------------------------