I’m on Windows and I’m trying to include the “matplotlibcpp” library into my C++ project in VS-Code. I already have Python and Matplotlib installed.
This would be a minimal example:
<code>#include <iostream>
#include "matplotlibcpp.h"
namespace plt = matplotlibcpp;
int main() {
plt::plot({1,3,2,4});
plt::show();
}
</code>
<code>#include <iostream>
#include "matplotlibcpp.h"
namespace plt = matplotlibcpp;
int main() {
plt::plot({1,3,2,4});
plt::show();
}
</code>
#include <iostream>
#include "matplotlibcpp.h"
namespace plt = matplotlibcpp;
int main() {
plt::plot({1,3,2,4});
plt::show();
}
However I get following two errors:
<code>#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit
</code>
<code>#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit
</code>
#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit
<code>cannot open source file "matplotlibcpp.h"C/C++(1696)
</code>
<code>cannot open source file "matplotlibcpp.h"C/C++(1696)
</code>
cannot open source file "matplotlibcpp.h"C/C++(1696)
The file can be taken from the Github repository, but when I add it to my project folder there are additional files missing and I’m also unsure on how to add the path.
I couldn’t find any good ressources on this, so help would be much appreciated!