Possible Duplicate:
What is the difference between #include <filename> and #include “filename”?
I just got involved into a project.
When I were tracing the project code, I found that
some people can include a header file by this way:
include < XXX.h >
XXX.h is a header file that is not in system libraries and made by our own programmers…
My question is how to use ‘<‘ and ‘>’ instead of double ” ?
and how to include headers in other directories by this way?
for example:
headers/header_a.h
headers/header_b.h
I can use include < header_a.h > and < header_b.h >…
should I use Makefile to implement this? thanks..
A file in double-quotes is referenced relative to the current directory:
You’d generally use this for your own headers.
A file in angle-brackets is referenced relative to the paths specified to the compiler:
You’d generally use this for system or perhaps third-party headers, assuming the compiler is invoked with something like