RE: Version of dynamic library
RE: Version of dynamic library
- Subject: RE: Version of dynamic library
- From: Quinn <email@hidden>
- Date: Fri, 11 Apr 2008 10:03:22 +0100
At 12:20 +0530 11/4/08, anukriti_shrimal wrote:
How can I get the version in such files?
You have to parse the fat header to find the architecture you're
interested in, and then look up the version number in that specific
architecture. The fat header is not very complex; see <mach-o/fat.h>
for the details.
What's your high-level goal here? There are typically better ways to
manage version numbering that to go grovelling around in the image.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
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