home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-04-24 | 3.3 KB | 81 lines | [TEXT/KAHL] |
- Read this file before trying to compile GenericApp.
-
-
- Version 2, 3 and 4 of THINK C's are different in subtle ways.
- We have, therefore, supplied you with 3 different project files
- to accomodate any version of the compiler that you may happen
- to own. This file contains the instructions for compiling this
- project. Read On.
-
- Version 4.0 of THINK C supports the so-called "ANSI" standard
- definition of the C language. Previous versions of the
- Compiler don't. Therefore, header files and libraries that
- existed in earlier versions of Lightspeed don't exist anymore.
- The obvious advantage to this is that it's easier to write
- portable code, i.e., code that will compile and run on non-
- THINK C compilers that also support ANSI.The major disadvantage
- is that you need to make slight changes to source of Generic App
- depending on whether you're using Version 2, 3, or 4 of the
- compiler.
-
-
- Thus header file names changed between versions and beginning with
- version 3.0, a slick, new feature called MacHeaders was introduced
- that I like a lot. When the MacHeaders option is selected,
- the compiler knows all about Mac related data types, and
- you usually don't have to include those manager header files
- that define fundamental Mac data structures like Event Records, etc.
-
- Also between version 2 and 3, Multifinder became functional.So version
- 3 supports Multifinder while version 2 doesn't. It goes on and on.
-
- Because we want you folks out there to have running versions
- of Generic App, no matter what version of the compiler that
- you happen to own, I've devised a strategy that should allow everyone
- to use Generic (for the time being. I want you all to upgrade. And
- Symantec isn't paying me a commission, although maybe they should!).
-
- First, there are three project files, one for version 2, 3, and 4 of
- THINK C. You use the one that's appropriate for your system. Second,
- you let the preprocessor fixup the code for you through the
- use of a defined constant. This constant is in the file "Version.h" so
- open that file right now. It's in the miniGenAppHdr folder, with all
- the other header files.
-
- Here's what you do:
-
- For those of you who are running THINK C version 4.0:
-
- 1. change #undef V4 to #define V4 in Version.h.
- 2. make sure that you undefine V3 and V2.
- 3. Rename miniGenAppπ-v4.0 (the project file )
- to miniGenAppπ
- 4. Bring the Project "Up to Date"
-
- For those of you running version THINK C 3.01:
-
- 1. change #undef V3 to #define V3 in Version.h
- 2. make sure that you undefine V2 and V4.
- 3. Rename miniGenAppπ-v3.01 (the project file )
- to miniGenAppπ
- 4. Bring the Project "Up to Date"
-
- For those of you running versions Lightspeed 2.13 or 2.15:
-
- 1. change #undef V2 to #define V2 in Version.h
- 2. make sure that you undefine V3 and V4.
- 3. Rename miniGenAppπ-v2.13 (the project file )
- to miniGenAppπ
- 4. Run the project
-
- For those of you running anything else:
-
- Isn't it time that you catch up with the rest of us?
- After we finish Generic App, all examples will
- be in THINK 4.0, exclusively. There are a few
- good reasons for this, and you'll discover them
- as we get there. So please, anyone who is not
- using the latest version of the compiler,
- may we suggest that you think about upgrading?
-
-