Reputation: 12735
Don't understand why
#include <Header.h>
is not compiling while #include "Header.h"
is compiling with Visual Studio 2008. Am I missing something?
Upvotes: 1
Views: 5058
Reputation: 18237
They have different purposes.
The brackets <
and >
are for standard header files, while the quotes "
are for your header files.
Here is another question with more information regarding this:
What is the difference between #include <filename> and #include "filename"?
Upvotes: 4
Reputation: 434
when you mention header file <>, it looks in standard includes, but when header file is included with "", starts with current directory,then will look at standard includes. Here, in this case, Header.h is in current directory, may not be in standard includes.
Upvotes: 2
Reputation: 354969
The two forms of #include
search for headers differently.
You can find which paths are searched for each form in the #include
MSDN documentation.
Upvotes: 5