Saturday, September 26, 2009

[TIP] XCode Header Search Path

For many of you, this sounds like a stupid thing. But for those that just use gcc -I from command line, can be a pain find how to do it.

So, the problem is. How can I specify my Include path in XCode (gcc -I./mypath).


Tap on your project target, and click "Get Info", tap on "Build" tab and search "Path" as showed in the figure above. Then click on the "Header Search Paths" options and add your favorite include paths for selected target.

1 comment:

  1. Or just type -I, -F etc. in the search field. You can find most of gcc options this way.

    ReplyDelete