From: j DOT aldrich6 AT genie DOT com Message-Id: <199606141947.AA209641648@relay1.geis.com> Date: Fri, 14 Jun 96 19:15:00 UTC 0000 To: djgpp AT delorie DOT com Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Subject: Re: bmp file format Reply to message 5671512 from MWOOD AT INDYVAX on 06/13/96 1:05PM >Or litter your code with __attribute__ ((packed)) like I've been doing lately. >I don't suppose there's an -fall_structs_packed that I missed? You could always try -fpack-structs. :) It's generally not a good idea to use this, though, because it causes the compiler to assume that all library structures are packed as well, which is not true because they weren't compiled that way. If your program doesn't use any library structures (difficult for all but the simplest programs), then you are safe in using this flag, but otherwise don't try it. Besides, you don't need every structure to be packed, do you? To save yourself major headaches, just pack those structs that you are using to interface with the system or that you are saving to a file with fwrite(). John