I'm trying to incorporate the Boost libraries into my program, specifically lexical_cast and geometry. I include them using #include"boost/boost/geometry.hpp" and #include"boost/boost/lexical_cast/lexical_cast_old.hpp".
When I run the code I get the fatal error "Cannot open include file: 'boost/geometry/geometry.hpp': No such file or directory" which leads me to another .hpp file in the Boost library which includes another library, but uses #include<...> instead of #include"...".
When I replace it for "..." the error for this one goes, but it is replaced with the next library included using #include<...> instead of #include"...".
I feel like this could lead me down a rabbit hole of replacing nearly all instances of #include<...> with #include"..." which would take ages. Is there a setting I can change or a piece of code I could include that would sort this out?
Or could I just get rid of all the other unnecessary libraries and change the ones I need (I know that, that would still be a lot as they seem to rely on each other).
I have Boost library version 1.58.0.
boost/boost/*filename* you should haveboost/*filename*. Adjust your compiler's include path accordingly. Also use angle brackets for the include.#includesaying cannot open the source file "...". How do I adjust my compiler's include path?-I(uppercase) followed by directory path, as command line option. with g++ you can specify paths inCPATHenvironment variable, which then is treated as a last-Ioption. correspondingly with Visual C++ you can use theINCLUDEenvironment variable.