Re: [Opengc-devel] Flightgear status(!) & request for help (resend)
Status: Pre-Alpha
Brought to you by:
madmartigan
From: Damion S. <dam...@ho...> - 2002-10-25 17:58:13
|
Hmmm.... I'm not really familiar with what's involved with worrying about that sort of thing. Since you mentioned "byte alignment", I ran a search and it appears that Windows assumes that all data structures are multiples of 8 bytes. 696 is a multiple of 8, while 692 (which is the true size of the struct, based on the number of vars and their sizes) is not. So, is it correct to assume that Windows is tacking on an extra four bytes to maintain the x8 rule? Thanks, -Damion- ----- Original Message ----- From: "Gene Buckle" <ge...@de...> To: "Damion Shelton" <dam...@ho...> Cc: <ope...@li...> Sent: Friday, October 25, 2002 1:15 PM Subject: Re: [Opengc-devel] Flightgear status(!) & request for help (resend) > > BUT... here's where the help request comes in. It looks like Windows and > > Linux are handling object sizing differently. Under Windows, > > sizeof(ogcFGData) = 696 while on Linux sizeof(ogcFGData) = 692. I'm not sure > > > Make sure the byte alignment is the same on both systems. I run into this > frequently when working with FPC (pascal) projects that are cross > platform. > > g. > |