Macintosh Shared Library, using CodeWarrior Reference: "Inside CodeWarrior: Targeting MacOS and Java" o Create empty project o Target (pp 163-197) : > Target Settings: - Mac OS PPC Linker > PPC Target : - Project Type = Shared Library (PowerPC PEF shared library, pg 170) - Set file name > PPC Linker - Initialization: called when shared lib is loaded into memory - Main: "main" entry point - Termination: deallocate resources, etc (pg 193) > PPC PEF: - choose to export "#prgamas" (see under "Source code") o Source code: > Identify entry points in function prototypes: #pragma export on int woof( void ); int tweet( int argc , void *argv[] ); #prgama export off - Note: Target : PPC PEF: choose to export "#prgamas" Other methods: - .exp file - Target : PPC PEF: choose to export "All Globals" o Libraries, as required: > For Shared Libraries (see pg 95): CodeWarrior Pro 4 ..Metrowerks CodeWarrior ..MacOS Support ..Libraries ..MacOS Common ..InterfaceLib ..Runtime ..Runtime PPC .. MSL RuntimePPC.Lib For temporary DEBUG only, "printf" can be added by including the following libs. Note that the window created for display causes IDL to crash as soon as you touch it. CodeWarrior Pro 4 ..Metrowerks CodeWarrior ..Metrowerks Standard Library ..MSL C ..bin ..MSL C.PPC.Lib ..MSL SIOUX.PPC.Lib System Folder ..Extensions ..Mathlib > For Applications, see pg 63.