Reputation: 3918
I'm have a visual studio 2010 c++ solution, and there is an include that fails on compile (Fatal error, could not open include file).
My problem is: The path is specified in C/C++ Addition Include Directories, and I've run out of ideas... I know it's probably a simple thing but any hints at all would be great !
Also, does the fact that my project is on the desktop could cause a problem ?
Thanks
EDIT:
The header file is here C:\users\test\Desktop\testProject\mainLib\lib\common.h I include this in the additionnal directories : "C:\users\test\Desktop\testProject\
and my include looks like this :
#include <mainLib\lib\common.h>
common.h is a header that I've created
Upvotes: 0
Views: 4124
Reputation: 392979
Numerous possibilities.
If you have
c:\demo\include\sub\this.hpp
You should have
#include <sub/this.hpp> // with "c:\demo\include" in additional includes
If you have
c:\demo2\test.cpp
c:\demo2\test.hpp
you should have, in test.cpp
#include "test.hpp" // NOT <test.hpp>
Hope this gets you started.
Upvotes: 2