Date: Wed, 26 Feb 1997 15:41:33 +0200 (IST) From: Eli Zaretskii To: Olav Kindt cc: djgpp AT delorie DOT com Subject: Re: C++ packed structs.. In-Reply-To: <33142636.C9D@cmr.no> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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.