ADC Home > Reference Library > Technical Q&As > Legacy Documents > Carbon >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

The InterfaceLibSys7.additions Stub Library

Q: I'm trying to use the SystemSevenFiveOrLater gestalt.h functions NewGestaltValue and SetGestaltValue from a PPC application. They are not defined in InterfaceLib. Could you tell me where I can find them?

A: It might seem that Apple should ship an new InterfaceLib stub library with the additional System 7.5 symbols. By default, however, the new symbols would not be weak linked, and they would therefore send developers down the path of creating binaries that don't run on System 7.1.

Instead, Apple has created a separate stub library, InterfaceLibSys7.additions, which contains only the new System 7.5 InterfaceLib symbols. Since it is a separate file, it is easier to weak-link (and to remember to weak-link!).

In Metrowerks, use the pop up next to the file-in-project window and mark the whole library weak-linked. In MPW, use -weak and list the new System 7.5 functions used.

bluebook.gif Download Binhexed MetroWerks library file (2K)

[Nov 14 1996]

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.