These are the libraries I am linking with:
"{PPCLibraries}"CarbonStdCLib.o, "{PPCLibraries}"StdCRuntime.o,
"{PPCLibraries}"PPCCRuntime.o, "{SharedLibraries}"CarbonLib and
"{SharedLibraries}"StdCLib.
Thomas Engelmeier - 09 Sep 2004 11:55 GMT
> These are the libraries I am linking with:
> "{PPCLibraries}"CarbonStdCLib.o,
> "{PPCLibraries}"StdCRuntime.o,
> "{PPCLibraries}"PPCCRuntime.o,
> "{SharedLibraries}"CarbonLib and
> "{SharedLibraries}"StdCLib.
Two runtimes and two StdCLib variants are too much.
You need:
- one runtime (for PPC, StdC was IIRC to produce MPW tools)
- one libaray to access the MacOS routines (CarbonLib)
- one Standard library (only if you use standard C functions like
printf, strcmp et al.)

Signature
This address is valid in its unmodified form but expires soon.
> Hi all
>
> I'm trying to compile my first carbon program on a iMac using OS9 and
> MPW. ... How on earth do I teach MPW to link with the carbon library? ...
This set of libraries works for me:
"{PPCLibraries}StdCRuntime.o"
"{PPCLibraries}PPCCRuntime.o"
"{SharedLibraries}CarbonLib"
"{SharedLibraries}StdCLib"
You could also refer to the Makefiles in the sample code included with
the Carbon SDK (via http://developer.apple.com/sdk/). Some of those
link with {SharedLibraries}CarbonLib alone.
For more information:
1. http://developer.apple.com/documentation/Carbon/Conceptual/carbon_porting_guide/
cpg_buildstruct/chapter_3_section_4.html#//apple_ref/doc/uid/TP30000991-CH203-TP
XREF107
2. http://developer.apple.com/documentation/Carbon/Conceptual/carbon_porting_guide/
cpg_buildstruct/chapter_3_section_7.html
--Toby
> TIA
>
> Markus
Toby Thain - 29 Sep 2004 18:01 GMT
> > Hi all
> >
[quoted text clipped - 6 lines]
> "{SharedLibraries}CarbonLib"
> "{SharedLibraries}StdCLib"
In a project using StdCLib, you must use the following libraries and
objects, in the following order, or your application will not launch
under Carbon (may not properly bind to the OS X StdCLib):
"{PPCLibraries}CarbonStdCLib.o" ?
"{PPCLibraries}StdCRuntime.o" ?
"{PPCLibraries}PPCCRuntime.o" ?
"{SharedLibraries}CarbonLib" ?
"{SharedLibraries}StdCLib"
--Toby
> For more information:
> 1. http://developer.apple.com/documentation/Carbon/Conceptual/carbon_porting_guide/
cpg_buildstruct/chapter_3_section_4.html#//apple_ref/doc/uid/TP30000991-CH203-TP
XREF107
[quoted text clipped - 5 lines]
> >
> > Markus