#pragma pack(push, n) doesn't work on GCC 4.0
#pragma pack(push, n) doesn't work on GCC 4.0
- Subject: #pragma pack(push, n) doesn't work on GCC 4.0
- From: Jianping Wu <email@hidden>
- Date: Mon, 11 Jul 2005 15:48:08 -0400
Hi,
I put #pragma pack(push, 2) in my program and compiled it using GCC
4.0, I got the warning:
warning: malformed '#pragma pack' - ignored
The GCC version is:
$ gcc-4.0 -v
Reading specs from /usr/lib/gcc/powerpc-apple-darwin8/4.0.0/specs
Configured with: /private/var/tmp/gcc/gcc-4061.obj~8/src/configure
--disable-checking --prefix=/usr --mandir=/share/man --ena
ble-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^+.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/gcc/darwin
/4.0/c++ --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8
--target=powerpc-apple-darwin8
Thread model: posix
gcc version 4.0.0 20041026 (Apple Computer, Inc. build 4061)
However, it works on GCC 3.3! Can anyone tell me what happens to
Apple's GCC 4.0?
Thanks!
Jianping
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden