• 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
Can't define a preprocessor macro with Xcode 3.2.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't define a preprocessor macro with Xcode 3.2.5


  • Subject: Can't define a preprocessor macro with Xcode 3.2.5
  • From: Michael Crawford <email@hidden>
  • Date: Mon, 22 Nov 2010 12:55:03 -0500

I'm trying to define the following for my build configuration:

#define ANALYZER_TRACK_LIMIT 1

I'm using the project info dialog to define this using the Preprocessor Macros option thus:

http://dl.dropbox.com/u/4920112/Screen shot 2010-11-22 at 11.13.53 AM.PNG

In my code I'm using logic like this:

#ifdef ANALYZER_TRACK_LIMIT
	{ some code I only want defined for certain builds }
#endif

I've also tried #if defined(x) and #if.  Unless I put the define into one of my header files, the compiler doesn't seem to register it.  Looking at the build output, I could not find any evidence that the macro was defined, either.  There, the only macro that is consistently defined is -DDEBUG=1

What am I missing here?

-Michael
 _______________________________________________
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: Can't define a preprocessor macro with Xcode 3.2.5
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Help DTrace gurus: suggestions for capturing a mis-allocated NSData object on a customer's system
  • Next by Date: Re: Can't define a preprocessor macro with Xcode 3.2.5
  • Previous by thread: How to reopen a "Compare" produced .xcdiff file?
  • Next by thread: Re: Can't define a preprocessor macro with Xcode 3.2.5
  • Index(es):
    • Date
    • Thread