• 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 get "Preprocessor Macros" to work in Build Styles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: Stray \177 in program
  • Next by Date: Indexer takes wrong locations for C++ headers
  • Previous by thread: Re: Stray \177 in program
  • Next by thread: Indexer takes wrong locations for C++ headers
  • Index(es):
    • Date
    • Thread