Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create a .dylib



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/index.html

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      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden

References: 
 >How to create a .dylib (From: Alessandro Perrone <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.