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

compilation error in clion in matplotlibcpp.h

Open mukul-B opened this issue 4 years ago • 1 comments

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.

mukul-B avatar Mar 04 '21 20:03 mukul-B

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

DentonW avatar Aug 29 '21 12:08 DentonW