Path: utzoo!attcan!uunet!samsung!zaphod.mps.ohio-state.edu!sdd.hp.com!elroy.jpl.nasa.gov!ucla-cs!tj@cs.ucla.edu From: tj@cs.ucla.edu (Tom Johnson) Newsgroups: comp.sys.mac.programmer Subject: Think C and System 7.0 Message-ID: <38754@shemp.CS.UCLA.EDU> Date: 7 Sep 90 17:18:33 GMT Sender: news@CS.UCLA.EDU Organization: UCLA Computer Science Department Lines: 46 Last night I was reading in Inside Mac VI about the Gestalt trap, and I had heard that it was supported in System 6.0.5 so I decided to try it out myself. I took the System 7.0 Think interfaces from the 7.0a9 CD-ROM and installed them in in my copy of Think C. I was kind of surprised that there wasn't a replacement MacTraps library, or an additional System7.0 library, but I thought I'd give it a try anyways. I wrote a little program: #include main() { OSErr theErr; long response; theErr = Gestalt('sysv', &response); } Of course I had the MacHeaders option selected in the preferences, and I updated the MacHeaders file to the one supplied in the 7.0 interfaces folder. Everything compiles OK, but fails to link--I get the error: "undefined: Gestalt (gestalt.c)". I figured that this was because the Gestalt trap glue isn't in the MacTraps library. I looked around on the CD-ROM some more and I found the Interface.o file in the MPW System 7.0 interfaces. I tried to convert this file to a Think C library using the oConv program, but I got an error: "object file too large". My questions: 1. Am I right in assuming that I need a new library, or a new version of MacTraps in order to use the new routines? 2. Has anyone successfully managed to convert the interface.o file? Is this the file I need? 3. Can anyone help? Please? Thanks- Tom -- Tom Johnson UCLA Computer Science Department 3413 Boelter Hall, Los Angeles CA 90024 (213)825-6952 Internet: tj@cs.ucla.edu