Add an include path for xcode

Discussion in 'Mac Programming' started by eddyq, Jul 30, 2009.

  1. macrumors member

    Joined:
    Jun 10, 2009
    #1
    How do I add these for xcode:

    1. The include path(s)
    2. Defines
     
  2. Guest

    Joined:
    Mar 6, 2007
    #2
    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
     
  3. thread starter macrumors member

    Joined:
    Jun 10, 2009
    #3
    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.
     

Share This Page