Re: Version of dynamic library
Re: Version of dynamic library
- Subject: Re: Version of dynamic library
- From: "mm w" <email@hidden>
- Date: Thu, 10 Apr 2008 09:00:58 -0700
Hi
if you want a good example you can get it from lipo.c
a part of odc tools (a long time ago maintened by Shantonu)
I think your problem come from that you don't test
if you have a fat binary or not and which arch is stored (if 1)
if you wont be able to get the src (odc) on the Internet let me know
Cheers!
On Thu, Apr 10, 2008 at 3:36 AM, anukriti_shrimal
<email@hidden> wrote:
>
>
>
>
> Hi All,
>
>
>
> I am currently working on Mac Os x 10.4.7
>
> I am trying to retrieve the version of a dynamic library (.dylib) from its
> full path.
>
>
>
> While investigating source code of dyld, I found that the mach_header or
> mach_header_64 contains the version information.
>
> So, I tried to get the mach_header from the file contents.
>
> But I was unable to do so.
>
>
>
> Can anyone help me in this regard,
>
> Is there some other way to accomplish the same task,
>
>
>
> Thanks in advance,
>
> Princess
>
>
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Darwin-kernel mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
>
> This email sent to email@hidden
>
--
-mmw
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden