[Bug libstdc++/48547] iostream and some other C++ libraries do not work with -fpack-struct
d.g.gorbachev at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Apr 11 05:46:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48547
--- Comment #16 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2011-04-11 05:46:07 UTC ---
> I don't know of compiler-specific ways of doing structure
> packing using pragmas or whatever. I am learning though.
Use GCC __attribute__((packed)) or #pragma pack (which is also supported by
MSVC). They are described in the GCC documentation.
More information about the Gcc-bugs
mailing list