Can't define a preprocessor macro with Xcode 3.2.5
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