www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/26/08:53:23

Date: Wed, 26 Feb 1997 15:41:33 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Olav Kindt <kindt AT cmr DOT no>
cc: djgpp AT delorie DOT com
Subject: Re: C++ packed structs..
In-Reply-To: <33142636.C9D@cmr.no>
Message-ID: <Pine.SUN.3.91.970226154037.10395I-100000@is>
MIME-Version: 1.0

On Wed, 26 Feb 1997, Olav Kindt wrote:

> will be packed correctly when compiled as C-source. Then it says that
> C++ doesn't allow this, and you must declare each struct field with the
> packed attribute.
> 
> Does this in effect mean this :
> 
> 	struct {
> 		char name[7] __attribute__ ((packed));
> 		unsigned long offset __attribute__ ((packed));
> 		double quality __attribute__ ((packed));
> 	};

Yes, that's what the FAQ means to say.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019