c++visual-studiovisual-c++gnuplotgnuplot-iostream

Cannot open include file, despite aforementioned file exists


I include a header file like this:

#include "gnuplot-iostream.h"

but it causes 37 errors like in the title. The errors are caused by includes from the boost++ headers like this:

#include <boost/iostreams/device/file_descriptor.hpp>

I can change the including syntax form <> to "" in each file and every include but there are over a hundred of them, and I don't know why the compiler doesn't search for the header file in the source location although it should. I'm using Visual Studio 2015. How to make the compiler search the source location first. I have a correct path file. I checked it a few times, and when I right click on the path in IDE and click on show file option it opens the exact file it points to. And changing from <> to "" works, but I want to know a better way to do it.


Solution

  • For Visual Studio, the <> tells the compiler not to look in the source location. You can find more information here.

    I think you have several possibilities: