us015029@3M.Com (John E. Collins) (12/19/90)
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
------------------------------------------------------------------------ksand@Apple.COM (Kent Sandvik) (12/19/90)
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"
Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) (12/22/90)
John E. Collins writes in a message to All
JEC> When I tried to find a description of "C - Fatal Error : 430" 
JEC> in the documentation, I was unable to find any sort of tabulation 
JEC> of errors and their meanings. Is this typical of Apple's stuff?? 
Welcome to "Programming for the rest of us!"
Lawson
 
 
--  
Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English
Internet: Lawson.English@p88.f15.n300.z1.fidonet.org