Re: [Xcode-users] dylib Version Introspection?
Re: [Xcode-users] dylib Version Introspection?
- Subject: Re: [Xcode-users] dylib Version Introspection?
- From: Chris Hanson <email@hidden>
- Date: Wed, 01 Oct 2008 09:07:13 -0700
On Oct 1, 2008, at 8:35 AM, Peter O'Gorman wrote:
Alexander von Below wrote:
Hello,
is there an easy way for a dylib to determine its own "current
version",
i.e. the info you get from otool -l ?
You probably know this already, but, see /usr/include/mach-o/ldsyms.h
and /usr/include/mach-o/loader.h.
I do not know if there is an easier way.
There is. :)
The header <mach-o/dyld.h> defines NSVersionOfRunTimeLibrary() and
NSVersionOfLinkTimeLibrary().
These are documented in the header and in the dyld(3) man page:
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/dyld.3.html
-- Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden