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: Keary Suska <email@hidden>
- Date: Sun, 11 May 2008 19:01:09 -0600
- Thread-topic: how to ensure #defines apply to all files in project?
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"
_______________________________________________
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