In a source file I do:
<code>#include "ExternalDeps/MyTestLib/myheader.h"
</code>
<code>#include "ExternalDeps/MyTestLib/myheader.h"
</code>
#include "ExternalDeps/MyTestLib/myheader.h"
And then inside myheader.h I have:
<code>#pragma once
#include <subfolder/another_header.h>
</code>
<code>#pragma once
#include <subfolder/another_header.h>
</code>
#pragma once
#include <subfolder/another_header.h>
I get a compiler error saying that it can’t open subfolder/another_header. If however I use use quotation marks instead of angled brackets it works:
<code>#pragma once
#include "subfolder/another_header.h"
</code>
<code>#pragma once
#include "subfolder/another_header.h"
</code>
#pragma once
#include "subfolder/another_header.h"
My question is why does it work with quotation marks and not with angled brackets? I’m using the boost endianness header only library and in their headers they include other headers in subfolders, and it can’t find them because angled brackets are used.