Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build style sensing



On Aug 4, 2004, at 11:23 PM, Nigel Spon wrote:

I'm having trouble figuring out the best method of adding conditionals to my code that will be included when I use a "development" build style. There doesn't seem to be any easy way of adding a symbol so I can use "#ifdef qDebug". I could tell the build style to force a prefix header with "#define qDebug" in it, but that would mean I couldn't use prefix headers in the target build options to define precompiled headers for the different targets that my project builds... I think. I have the feeling I'm coming at this from the wrong direction, does anyone know of a better way of doing it?

In the build style settings, add "-DqDebug" to the "other C flags" setting, without the quotes.


Nick Zitzmann
<http://seiryu.home.comcast.net/>
S/MIME signature available upon request

"Monsieur l'abbi, I detest what you write, but I would give my life to make it possible for you to continue to write." - Voltaire
_______________________________________________
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.



References: 
 >Build style sensing (From: Nigel Spon <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.