This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]