Re: Version of a dynamic library
Re: Version of a dynamic library
- Subject: Re: Version of a dynamic library
- From: Michael Smith <email@hidden>
- Date: Fri, 11 Apr 2008 23:01:21 -0700
On Apr 10, 2008, at 3:35 AM, anukriti_shrimal wrote: 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.
You should call 'otool -l' and parse the output, looking for the LC_ID_DYLIB command.
However, you said elsewhere that your "project" did not allow you to call otool, which suggests to me that you're asking the Internet to help you solve a school assignment, which is a big no-no.
If that's the case, then you should follow Terry's advice, but not if you are building a shipping product. If you actually intend for this code to be *used* anywhere, call otool and Do the Right Thing.
= Mike
|
_______________________________________________
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