jupyter-xeus / xeus-cling

Jupyter kernel for the C++ programming language
BSD 3-Clause "New" or "Revised" License
3.01k stars 294 forks source link

Add header only library #518

Open SuperKlever opened 4 months ago

SuperKlever commented 4 months ago

I downloaded the header only library (NumCpp) and now I have the /include directory. The library folder is located in the same directory as my .ipynb file. I'm trying to add add library to include path, however it doesn't seem to work.

#pragma cling add_include_path("/NumCpplib/include") #include "NumCpplib/include/NumCpp.hpp"

After running this code, I get the classic error that the path to the library was not found.

./NumCpplib/include/NumCpp/Coordinates.hpp:30:10: fatal error: 'NumCpp/Coordinates/Cartesian.hpp' file not found

What am I doing wrong?