What's the difference? When would you use either?
Asked
Active
Viewed 3.8k times
1 Answers
203
Use the User Header Search Paths for paths you want searched for #include "..." and use the Header Search Paths for #include <...>. Of course, if you check the option to Always Search User Paths, then #include <...> will also work for the user paths.
Basil Bourque
- 262,936
- 84
- 758
- 1,028
JWWalker
- 21,925
- 5
- 56
- 74
-
thanks! Yeah i kind of figured that, but why would you use one or the other? To me, <> should be system includes only, and everything else should be in "", but that's just my training from programming in C. I guess <> could point to well-known libraries which are not system includes? – mindthief Aug 08 '10 at 05:40
-
Yes, I think "well-known libraries" is about right. Personally I use < > for Boost headers as well as system headers. – JWWalker Aug 08 '10 at 05:57
-
did not know about Boost (http://www.boost.org/)! Thanks, it looks very interesting. – mindthief Aug 11 '10 at 22:49
-
16`< >` is for frameworks -- `.a` and `.frameworks` "libraries" -- and it doesn't matter if it's a system framework, one of your own or a 3rd party (like Boost.) `" "` is for project headers -- .h files that are part of the set of files being compiled. Hope that helps clarify. – Olie Aug 20 '14 at 17:07