delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/10/07/03:21:14

From: Natasha and Don <fstcns AT lux DOT latrobe DOT edu DOT au>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: packed data structures?
Date: Sun, 06 Oct 1996 17:17:49 +1100
Organization: La Trobe University
Lines: 15
Message-ID: <32574F0D.215B@lux.latrobe.edu.au>
References: <52nl1a$kqv AT news2 DOT cnct DOT com>
NNTP-Posting-Host: din-2-15.latrobe.edu.au
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

John Panettiere wrote:
> 
> Hello, all.
> 
> ... realized that djgpp wasn't packing the data structures - so I browsed
> the info files and found "__attribute__((packed))", which seemed to be
> the answer I was looking for. 

Hmm I suspect that your problem is that you are using C++,
__attribute__ ((packed)) only seems to work for C. I have exactly
the same problem myself and am thinking of using bitfields (barf)!

Does any one else have any ideas?

Don.

- Raw text -


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