Mac OS 9 Discussion > Development & Programming

Think C, docs, and OS 9

(1/1)

thirdbanana:
A long time ago I used to do some coding in Think C. In fact, one of my lousy programs even ended up in a shareware CD. While I am looking for where my old floppies are -- I found them early last month and thought I would remember where they are, which I did not -- I bumped into the pdf of the Think C book I used ("MacIntosh C Programming Primer: Inside the Toolbox Using Think C (May 1992)"). It seems the examples are for OS 7. So,


* Is there a doc showing what has changed between OS 7 and 9 as far as programming is concerned? For instance, if I decide to make my code work in OS 7 and M68K/PPC, would it also work in OS9/PPC?
* Is Think C (I saw version 6 out there) a valid C compiler for OS 9 or should I get code warrior/MPW?

thirdbanana:
Also, I downloaded Think C 5.0.2 off macintosh garden, and then tried to build a simple "Hello World" that uses the stdio.h (p46 of "MacIntosh C Programming Primer: Inside the Toolbox Using Think C (May 1992)" does show I need the ANSI library, so I followed its advice ). When I tried to run it, the computer (Mac Mini G4 running OS9) froze up on me. Does that mean Think C 5 does not work well in OS9?

Bolkonskij:
Yes, it doesn't! I think it's not even an OS 9 issue, but rather a 68k vs. PPC one. I had run into exactly the same problem when I tried to compile my programs on my Power Mac 8600 running 7.6.1 (instead of the IIci, where I wrote the code).

I think Think C is 68k only (and it can only target 68k too). I love it for it's simplicity yet mindful features and would love to keep using it, but ....

If you want to code on Mac OS 9, I guess you better stick with the de-facto standard of the day, Code-Warrior. (or, if you're masochistic enough - MPW)

Navigation

[0] Message Index

Go to full version