matplotlib-cpp icon indicating copy to clipboard operation
matplotlib-cpp copied to clipboard

matplotlibcpp.h: No such file or directory

Open Rakee003 opened this issue 4 years ago • 1 comments

I am trying to use this library in my c++ project. I am very new to use external library with c++. I followed the instruction given . I also tried both windows and linux.

Initially i got an error with missing python.h but later i solved it .

Now im getting error with fatal error: matplotlibcpp.h: No such file or directory 1 | #include "matplotlibcpp.h" I am using visual studio code , I have installed the library using vcpkg as per the instruction given . I ran the program in terminal following the instructions . But i end up with the above error. I couldnt find any clear source to rectify my error . Please help me to find a way.

Rakee003 avatar Nov 25 '21 11:11 Rakee003

@Rakee003 You can copy it from this repository and paste into your project folder. After it I ran this in terminal: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/anaconda3/lib/ and this export CPLUS_INCLUDE_PATH=/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Headers:/opt/anaconda3/pkgs/numpy-base-1.20.1-py38h585ceec_0/lib/python3.8/site-packages/numpy/core/include/ to fix problems with numpy and other packages

poteminr avatar Dec 02 '21 12:12 poteminr