www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/03/07:07:47

Date: Wed, 3 Mar 1999 14:04:06 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Gisle Vanem <gvanem AT eunet DOT no>
cc: djgpp AT delorie DOT com
Subject: Re: Real stupid problem.
In-Reply-To: <005401be6551$992b7130$293f8589@gv015029.bgo.nera.no>
Message-ID: <Pine.SUN.3.91.990303140217.1216B-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Wed, 3 Mar 1999, Gisle Vanem wrote:

> >It's "__attribute__((packed))" (double parentheses).
> 
> Why don't people use '#pragma pack(1)' instead.

The GCC docs explain why the GNU project thinks pragmas are the wrong 
tool for just about anything.

> And refering section 22.11 in the FAQ 
> it seems that '__attribute__((packed))' is buggy (for C++) in gcc 2.7.2.

I don't expect anybody to use 2.7.2 anymore.

- Raw text -


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