I have a visual studio solution myvs .sln with the following path: c:\dir1\dir2\dir3\myvs\myvs\myvs.sln . I have installed xxx version installed in c:\dir1\dir2\dir3\boostxxx\ .
I have in the project-> properties-> c / C ++ β general: ../..;../../boostxxx . Within extended libraries, the included files have the following syntax: #include <boost/smart_ptr/shared_ptr> .
My code file myfile.h is located in c:\dir1\dir2\dir3\yy1\myfile.h . In myfile.h, I include boost libraries as: #include <boost/shared_ptr.hpp> . I get an error: c:\dir1\dir2\dir3\yyy1/myfile.h fatal error C1083 cannot open include file boost/shared_ptr.hpp .
The question is, what should I do to fix this?
I also notice that the error output generated by the compiler has "\" before dir3, and then changes to "/".
Most likely, I do not understand how the relative path works. Also note that I want to refer only to a relative path, not absolute paths. Can someone help? I am on a Windows platform using visual studio 2010 C ++.
source share