site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Importance: Normal User-agent: SquirrelMail/1.4.2 Alessandro Perrone said:
Hi all Is it possible to have an example on how to write a library on Darwin/OsX? How to create a .dylib
I'm sort of a newbie to this too. One thing that I found quite useful was a PDF about the Mach-O Runtime. It explains how to link a dylib among other things. I can't find the link now but perhaps someone else has a pointer? Note I'm not talking about the PDF-ized version of the "Mach-O Runtime Architecture" HTLM documentation on ADC. There's anothor PDF that's more concise and generally better. I don't have it in front of my at the moment so I cannot provide any other details as to it's origin. Another thing to consider is making a Framework. It's just a dylib with some directories and largely empty parameter files but I beleive it is the preferred organization for a library. The Frameworks documentation is here: http://developer.apple.com/documentation/MacOSX/Conceptual/BPFrameworks/inde... But the "Mach-O Runtime" PDF I mentioned explains Frameworks as well. Personally I'm also looking at creating a installation pkg file using PackageMaker to install my Framework. That way, when someone wants to install your lib then just download and click through. No hassles. The extra work involved with building a Framework pkg seems pretty minimal. Mike _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Michael B Allen