• 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
compiler bug??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

compiler bug??


  • Subject: compiler bug??
  • From: Philip Lukidis <email@hidden>
  • Date: Thu, 8 Sep 2005 09:21:23 -0400

I'm pretty new to kext development.  Recently, I've encountered something
very strange in one of my classes.  Briefly, when I place a member variable
in a certain position within my class, all hell breaks loose.  The member
variable is placed within an #ifdef #endif block, and the symbol is defined
with the -D switch.  When I removed the #ifdef #endif block, I had no
problems.  When I moved the entire #ifdef #endif block to another location
within the class, I had no problems.  But when I placed the #ifdef #endif
block right under the public keyword, all hell broke loose.

Changing the optimization level to -O0 had no effect.  What are your
thoughts on this?  Is there some sort of fatal overflow into my class
memory, something else, or is this a compiler bug?  Note the following:

#ifdef FIRELOGCORE
myClass* mPub;
#else
void* mPub
#endif

worked, while

#ifdef FIRELOGCORE
myClass* mPub;
#endif

did NOT work when placed under the public keyword.  Your thoughts on the
subject would be appreciated.

thanks,

Philip Lukidis
 _______________________________________________
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: compiler bug??
      • From: Andreas Grosam <email@hidden>
    • Re: compiler bug??
      • From: Chris Espinosa <email@hidden>
    • Re: compiler bug??
      • From: "Andy O'Meara" <email@hidden>
  • Prev by Date: Re: Xcode UI questions
  • Next by Date: Re: Xcode UI questions
  • Previous by thread: Re: Xcode UI questions
  • Next by thread: Re: compiler bug??
  • Index(es):
    • Date
    • Thread