Important: The information in this document is obsolete and should not be used for new development.
Open Transport Libraries
The libraries that you need to link with vary depending on whether you are writing PowerPC code or 68000 code and on a variety of additional factors, specified in the tables that follow. Table 2-1 lists the libraries you need to link with if you are writing PowerPC code.Table 2-1 Open Transport libraries for PowerPC code
If you need... Link with... to build an application OpenTransportLib
OpenTransportAppPPC.o
AppleTalk services OpenTptAppleTalkLib
OpenTptATalkPPC.o
Internet services OpenTptInternetLib
OpenTptInetPPC.o
to use ports or Open Transport Utility functions only OpenTransportUtilLib
(instead ofOpenTransportLib
)
OpenTptUtilsAppPPC.o
(instead ofOpenTransportAppPPC.o)
to build a CFM fragment or ASLM shared library OpenTransportExtnPPC.o
(instead ofOpenTransportAppPPC.o)
OpenTptUtilsExtnPPC.o
(instead ofOpenTptUtilsAppPPC.o)
Table 2-2 lists the libraries you need to link with if you are writing 68000 code. Link with the libraries in square brackets if you are building MPW model-near clients.
- Note
- If your code is meant to run on machines with and without Open Transport, you should make sure to weak-link with the libraries ending in
Lib
. Otherwise, the system cannot launch your application when Open Transport is not installed. For more information on weak linking, see Inside Macintosh: PowerPC System Software.Table 2-2 Open Transport libraries for 68000 code
If you need... Link with... to build an application OpenTransport.o
[OpenTransport.n.o
]
OpenTransportApp.o
[OpenTransportApp.n.o
]AppleTalk services
OpenTptATalk.o
[OpenTptATalk.n.o
]Internet services
OpenTptInet.o
[OpenTptInet.n.o
]to use ports or Open Transport utility functions only OpenTptUtils.o
(instead ofOpenTransport.o
)[
OpenTptUtils.n.o
]
(instead ofOpenTransport.n.o
)to build a stand-alone code resource or ASLM shared library OpenTransportExtn.o
(instead ofOpenTransportApp.o
)
[OpenTransportExtn.n.o
]
instead ofOpenTransportApp.n.o
.)