Question

I'm toying around with development on Mac OS 9 using Macintosh Programmers Workshop. I notice in the CImports folder there is a CFString.h with our beloved Core Foundation string.

I've managed to build and run a stdio-based hello world, but when I try to use CFString functions such as CFSTR("my string") or CFStringGetLength(myStr) this results in a linker error.

How do I configure MPW to find the correct libraries for linking? Also, are there resources out there for a developer who knows C but has never approached MPW?

I've reached this point by following this tutorial: https://sites.google.com/site/chuzzum/macintosh-c-programming-guide/macintosh-development-environments/getting-started-with-mpw

Was it helpful?

Solution

It's been ages since I last tinkered with MPW, but the gist is that you need to link against CarbonLib.

I hope you've already discovered the option-enter shortcut for running commands through Commando. That makes things a lot easier.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top