• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
#pragma pack(push, n) doesn't work on GCC 4.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

#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

  • Follow-Ups:
    • Re: #pragma pack(push, n) doesn't work on GCC 4.0
      • From: John Mikros <email@hidden>
    • Re: #pragma pack(push, n) doesn't work on GCC 4.0
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Hiding warnings
  • Next by Date: Re: Debugger displays empty call stack & variables window
  • Previous by thread: Hiding warnings
  • Next by thread: Re: #pragma pack(push, n) doesn't work on GCC 4.0
  • Index(es):
    • Date
    • Thread