delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/14/10:56:45

Date: Tue, 14 Oct 1997 14:25:53 +0200 (MET DST)
From: Herman Geza <hg211 AT hszk DOT bme DOT hu>
To: DJGPP Levelezesi lista <djgpp AT delorie DOT com>
Subject: GNU C++ Error or a feature or what?
Message-ID: <Pine.GSO.3.96.971014142136.11435A-100000@ural2>
MIME-Version: 1.0

	Hi there!

	I have a little problem with GNU C++. When I make a struct type,
	and I add __attribute__((packed)), it doesn't work. The compiler
	behaves as if the __attribute__((packed)) wasn't there...
	If I compile my program with simple C, it works. And, if I use
	the option -fpack-struct, the compiler works fine, but my program
	won't be compatible with the libraries. So, why does 

			__attribute__((packed))
			  NOT WORK under C++?

					Thanks for advance, Lantic

- Raw text -


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