Mail Archives: djgpp/1996/03/10/01:30:46
On 8 Mar 1996, Troy D. Van Horn wrote:
> I just discovered the reason for the problem today--I was compiling the
> program using C++. I wrote a small test program and which uses the following
> structure from <dos.h>, and it produced different offsets when I compile to
> assembly depending on whether I use C or C++.
[snip]
> Evendently the C++ compiler does not properly handel the
> __attribute__((packed)) command.
Yes, that's right. This is a known GCC bug, so it won't be corrected
until some future GCC version.
- Raw text -