Re: How to create a .dylib
Re: How to create a .dylib
- Subject: Re: How to create a .dylib
- From: "Michael B Allen" <email@hidden>
- Date: Mon, 21 Mar 2005 18:06:09 -0500 (EST)
- Importance: Normal
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:
This email sent to email@hidden