home *** CD-ROM | disk | FTP | other *** search
/ Eagles Nest BBS 8 / Eagles_Nest_Mac_Collection_Disc_8.TOAST / Developer Tools⁄Additions / MacUserProj / MacUser Projects / June / Readme < prev   
Encoding:
Text File  |  1990-04-24  |  3.3 KB  |  81 lines  |  [TEXT/KAHL]

  1.     Read this file before trying to compile GenericApp.
  2.     
  3.     
  4.     Version 2, 3 and 4 of THINK C's are different in subtle ways. 
  5.     We have, therefore, supplied you with 3 different project files
  6.     to accomodate any version of the compiler that you may happen
  7.     to own. This file contains the instructions for compiling this
  8.     project. Read On.
  9.     
  10.     Version 4.0 of THINK C supports the so-called "ANSI" standard
  11.     definition of the C language. Previous versions of the 
  12.     Compiler don't. Therefore, header files and libraries that 
  13.     existed in earlier versions of Lightspeed don't exist anymore. 
  14.     The obvious advantage to this is that it's easier to write 
  15.     portable code, i.e., code that will compile and run on non-
  16.     THINK C compilers that also support ANSI.The major disadvantage 
  17.     is that you need to make slight changes to source of Generic App
  18.     depending on whether you're using Version 2, 3, or 4 of the 
  19.     compiler.
  20.  
  21.  
  22.     Thus header file names changed between versions and beginning with
  23.     version 3.0, a slick, new feature called MacHeaders was introduced
  24.     that I like a lot. When the MacHeaders option is selected,
  25.     the compiler knows all about Mac related data types, and
  26.     you usually don't have to include those manager header files 
  27.     that define fundamental Mac data structures like Event Records, etc.
  28.     
  29.     Also between version 2 and 3, Multifinder became functional.So version
  30.     3 supports Multifinder while version 2 doesn't. It goes on and on.
  31.     
  32.     Because we want you folks out there to have running versions 
  33.     of Generic App, no matter what version of the compiler that 
  34.     you happen to own, I've devised a strategy that should allow everyone
  35.     to use Generic (for the time being. I want you all to upgrade. And
  36.     Symantec isn't paying me a commission, although maybe they should!).
  37.     
  38.     First, there are three project files, one for version 2, 3, and 4 of
  39.     THINK C. You use the one that's appropriate for your system. Second,
  40.     you let the preprocessor fixup the code for you through the
  41.     use of a defined constant. This constant is in the file "Version.h" so
  42.     open that file right now. It's in the miniGenAppHdr folder, with all
  43.     the other header files.
  44.     
  45.     Here's what you do:
  46.     
  47.         For those of you who are running THINK C version 4.0:
  48.         
  49.             1. change #undef V4 to #define V4 in Version.h.
  50.             2. make sure that you undefine V3 and V2.
  51.             3. Rename miniGenAppπ-v4.0 (the project file )
  52.                 to miniGenAppπ
  53.             4. Bring the Project "Up to Date"
  54.                 
  55.         For those of you running version THINK C 3.01:
  56.         
  57.             1. change #undef V3 to #define V3 in Version.h
  58.             2. make sure that you undefine V2 and V4.
  59.             3. Rename miniGenAppπ-v3.01 (the project file )
  60.                 to miniGenAppπ
  61.             4. Bring the Project "Up to Date"
  62.  
  63.         For those of you running versions Lightspeed 2.13 or 2.15:
  64.         
  65.             1. change #undef V2 to #define V2 in Version.h
  66.             2. make sure that you undefine V3 and V4.
  67.             3. Rename miniGenAppπ-v2.13 (the project file )
  68.                 to miniGenAppπ
  69.             4. Run the project
  70.             
  71.         For those of you running anything else:
  72.         
  73.             Isn't it time that you catch up with the rest of us?
  74.             After we finish Generic App, all examples will
  75.             be in THINK 4.0, exclusively. There are a few
  76.             good reasons for this, and you'll discover them
  77.             as we get there. So please, anyone who is not
  78.             using the latest version of the compiler,
  79.             may we suggest that you think about upgrading?
  80.                 
  81.