PDA

View Full Version : Add an include path for xcode




eddyq
Jul 30, 2009, 02:57 PM
How do I add these for xcode:

1. The include path(s)
2. Defines



mags631
Jul 30, 2009, 03:16 PM
Look at your Project/Target settings:
1) Additional "include paths" can be specified in the Search Paths section
2) Additional "defines" can be specified in Other C Flags / Other C++ Flags. E.g., -DDEBUG

eddyq
Aug 11, 2009, 09:32 AM
I finally found a friend with an answer for the defines. This is what he said:

In the Build settings tab of the Project Info or Target Info screens, edit the "Preprocessor Macros" setting. Don't include the -D, just the MACRO=value part. If you do it in the Project settings, it will apply to all targets in the project. If you edit the target settings it will apply to just that target.

Be sure to set the right configuration (Debug or Release, or pick All Configurations) depending on what you are trying to do.