Can't get "Preprocessor Macros" to work in Build Styles
Can't get "Preprocessor Macros" to work in Build Styles
- Subject: Can't get "Preprocessor Macros" to work in Build Styles
- From: "Dennis C.De Mars" <email@hidden>
- Date: Sat, 20 Mar 2004 11:12:26 -0800
If this is really a bug of course I'll file a bug report, but first I
want to check whether I am just doing something stupid.
I decided I needed some conditional compilation to be done in the debug
version of my app, which led me to try modifying the build styles for
the first time since I migrated from PB->Xcode months ago.
I filled in the name of the macro symbol I wanted defined in the
Preprocessor Macros field in the Development build style. However, when
I compile I always get the branch that is supposed to compile when the
macro is _not_ defined. I tried:
1) Double checking that the spelling matched
2) Double checking that the active build style was Development, not
Deployment
3) Double checking the preprocessor syntax
Finally I tried looking at the detailed build log, and it looks like
the "-D macro_name" flag you would expect to be generated simply isn't
there.
It looks like other settings in the build styles are getting through, I
don't know why this one has no effect.
For now I am giving up and sticking the define in the "Other C Flags"
part of the build style, but can anyone think of something I might have
done somewhere in the project that would prevent this from working?
Anyone else ever see this happen?
(My apologies if this popped up in the list before, but I did a search
and couldn't find this particular problem mentioned.)
- Dennis D.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.