delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/04/14:56:55

Xref: news2.mv.net comp.os.msdos.djgpp:785
From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: __alignement__ in v2b5
Date: Sun, 04 Feb 1996 12:09:41 CST
Organization: Rice University, Houston, Texas
Lines: 11
Message-ID: <3114f665.sandmann@clio.rice.edu>
References: <4etntt$75b0 AT news DOT i-link DOT net>
Reply-To: sandmann AT clio DOT rice DOT edu
NNTP-Posting-Host: clio.rice.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> // test.cpp
> Can anyone tell me why this program produces: sizeof(TestStruct): 4

There is a bug in the C++ 2.7.x compiler which improperly handles 
packing.  This bug is not in the C compiler or in C++ 2.6.3.  This is a
FSF bug, not a GCC one.  Your options:  
 1) Use C instead of C++
 2) Fix the bug in the source, let everyone know where it is
 3) Use the GPP.EXE from 2.6.3

A byproduct of this bug is you can't use findfirst with C++ 2.7.x

- Raw text -


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