• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Different structure sizes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Different structure sizes


  • Subject: RE: Different structure sizes
  • From: Jeff Laing <email@hidden>
  • Date: Wed, 14 Dec 2005 12:21:03 +1100

> > The test app was printing 8 and the kext 6 as detailed earlier for
> > sizeof(PadState). I thought I had stated that earlier.

I've run into this sort of problem before (on another operating system -
cough) and it came down to the header files you had included.

I will bet London to a brick that you have a different structure packing
value being left "current" depending on what headers you include, and that
the fix will be to put the appropriate #pragma (or whatever it is on OSX,
I'm away from my mac at the moment) to explicitly specify the packing you
want immediately above your structure.
 _______________________________________________
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

  • Follow-Ups:
    • Re: Different structure sizes
      • From: Frederick Cheung <email@hidden>
  • Prev by Date: Re: Different structure sizes
  • Next by Date: Building on 10.4 - deploying on 10.3.9
  • Previous by thread: Re: Different structure sizes
  • Next by thread: Re: Different structure sizes
  • Index(es):
    • Date
    • Thread