Re: Utilizing OTHER_CFLAGS properly?
Re: Utilizing OTHER_CFLAGS properly?
- Subject: Re: Utilizing OTHER_CFLAGS properly?
- From: Sam Krishna <email@hidden>
- Date: Wed, 23 Dec 2009 12:47:25 -0600
Hi Jean-Daniel,
(1) There is no predefined entry named "Other C Flags".
(2) There are no "Preprocessor Macros" in the iPhone project SDK 3.0
template
(3) I've already tried your suggestion before you made it. As I said
in an earlier post, I set "OTHER_CFLAGS" equal to "-DTEST_FLAG=1".
This yielded nothing.
The only usable solution I've discovered is setting up a distinct .pch
file for each target. This solves the issue. I wish I could have been
more clear that the settings you have said I should expect with a "Mac
OS X" project when it comes to preprocessor macros are absent in an
iPhone project.
Thanks,
-Sam
On Dec 23, 2009, at 8:20 AM, Jean-Daniel Dupas wrote:
I should have said predefined instead of built-in.
In your target build setting, you should have a predefined entry
named "Other C Flags".
This is the one you can edit to add
-DTEST_FLAG=1
Note that adding this flag is what "Preprocessor Macros" build
setting should do when you set it to
TEST_FLAG=1
but as you said "Preprocessor Macros" does not work, just try to
workaround it by setting c flags directly.
Le 23 déc. 2009 à 15:08, Sam Krishna a écrit :
Hi Sherm,
I didn't read this as carefully as I thought. Here goes...
how do I access the built-in settings?
On Dec 22, 2009, at 12:39 PM, Sherm Pendley wrote:
On Tue, Dec 22, 2009 at 1:26 PM, Sam Krishna <email@hidden>
wrote:
On Dec 22, 2009, at 10:01 AM, Fritz Anderson wrote:
There's already a UI setting for preprocessor defines. Search the
build-setting list for "Preprocessor Macros" and "Preprocessor
Macros not
used in Precompiled Headers."
OK, I've removed OTHER_CFLAGS=1 from the Build Settings and
here's what I'm
trying now:
(1) I've set a User-Defined setting for TEST_FLAG
Xcode's user-defined build settings don't define preprocessor
macros.
Use the built-in settings, that's why they're there.
sherm--
--
Cocoa programming in Perl:
http://www.camelbones.org
_______________________________________________
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
-- Jean-Daniel
_______________________________________________
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