Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
RE: Version of dynamic library
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Version of dynamic library



At 14:45 +0530 11/4/08, anukriti_shrimal wrote:
Well, when I read the fat_header, it gives following values:

  magic = 3199925962, (bebafeca)
  nfat_arch = 0
Since the no. of fat_archs is 0, how can I determine the version number in
this case.

A value of zero for fat_archs is very unlikely. You're doing something wrong in your read code. Here's a typical example of a fat header:


$ hexdump -n 8 /usr/lib/libSystem.dylib
0000000 ca fe ba be 00 00 00 04

Remember that fat headers are always big endian.

My high level goal is to find the version of the dynamic library when I m
given its full path.

That's just a restatement of your original question. I was asking about /why/ you're trying to get this information. If I can understand what you're trying to do, I may be able to suggest a better approach (where "better" means "less code for you to write").


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


References: 
 >Version of dynamic library (From: "anukriti_shrimal" <email@hidden>)
 >Re: Version of dynamic library (From: "mm w" <email@hidden>)
 >RE: Version of dynamic library (From: "anukriti_shrimal" <email@hidden>)
 >RE: Version of dynamic library (From: Quinn <email@hidden>)
 >RE: Version of dynamic library (From: "anukriti_shrimal" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.