This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: G++ structure member alignment
- From: John Love-Jensen <eljay at adobe dot com>
- To: Baruch Lifshitz <baruchli at gmail dot com>
- Cc: MSX to GCC <gcc-help at gcc dot gnu dot org>
- Date: Wed, 14 Feb 2007 06:14:45 -0600
- Subject: Re: G++ structure member alignment
Hi Baruch,
> By the way, switch "-fpack-struct" do the job as well.
Careful... -fpack-struct will affect everything. If you are linking against
any other libraries that were not built with -fpack-struct, the structures
in their headers may not match the structures as laid out in the libraries.
Including the Standard C Library and the Standard C++ Library and the OS
APIs.
HTH,
--Eljay