lava / matplotlib-cpp

Extremely simple yet powerful header-only C++ plotting library built on the popular matplotlib
MIT License
4.28k stars 1.12k forks source link

compilation error in clion in matplotlibcpp.h #255

Open mukul-B opened 3 years ago

mukul-B commented 3 years ago

Error:C:/Users/dell/AppData/Local/Programs/Python/Python39/include/matplotlibcpp.h:340:20: error: redefinition of 'struct matplotlibcpp::detail::select_npy_type' template <> struct select_npy_type { const static NPY_TYPES type = NPY_INT64; }; ^~~~~~

in Clion.

DentonW commented 2 years ago

I have exactly the same issue under Windows. Pull request #271 fixes this for me (wrapping the offending lines in an #ifndef/#endif).