Re: how to ensure #defines apply to all files in project?
Re: how to ensure #defines apply to all files in project?
- Subject: Re: how to ensure #defines apply to all files in project?
- From: "Ken G. Brown" <email@hidden>
- Date: Mon, 12 May 2008 11:30:39 -0600
At 10:13 AM -0700 5/12/08, email@hidden apparently wrote:
>Date: Sun, 11 May 2008 19:01:09 -0600
>From: Keary Suska <email@hidden>
>Subject: Re: how to ensure #defines apply to all files in project?
>To: "Xcode-Users (Apple)" <email@hidden>
>Message-ID: <C44CF2F5.2291A%email@hidden>
>Content-Type: text/plain; charset="US-ASCII"
>
>on 5/11/08 6:41 PM, email@hidden purportedly said:
>
>> How do you ensure #defines are valid for all the files in a project?
>
>Put them in your prefix header (.pch). You may have to tell your project
>about your prefix header, if you are sing Xcode < 3.0. Earlier Xcodes
>included prefix headers in the template, but didn't set the config to
>support them. If you don't have one, you can easily add one.
>
>Alternatively, you need to make sure every .c file includes the header/file
>that contains the needed #defines. There may be some other preprocessor
>magic I am not aware of, but I would do one of these two (most likely the
>first).
>
>HTH,
>
>Keary Suska
>Esoteritech, Inc.
>"Demystifying technology for your home or business"
Put the one I needed in a .pch file and it works now.
Thank You!
Ken G. Brown
_______________________________________________
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