Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Think C, docs, and OS 9  (Read 833 times)

thirdbanana

  • 8 MB
  • **
  • Posts: 14
Think C, docs, and OS 9
« on: September 02, 2024, 05:47:22 AM »

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?
Logged

thirdbanana

  • 8 MB
  • **
  • Posts: 14
Re: Think C, docs, and OS 9
« Reply #1 on: October 16, 2024, 02:51:57 AM »

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?
Logged

Bolkonskij

  • Staff Member
  • 256 MB
  • *****
  • Posts: 278
    • Cornica.org
Re: Think C, docs, and OS 9
« Reply #2 on: October 16, 2024, 04:28:33 AM »

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)
Logged
Pages: [1]   Go Up

Recent Topics