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

matplotlib error

Open Ujjwalkanth opened this issue 4 years ago • 1 comments

Hello @lava ,

I am using Windows VSCode. I just ran the minimal example and I am getting the following error:

In file included from minimal.cpp:1:0: matplotlibcpp.h:316:20: error: redefinition of 'struct matplotlibcpp::detail::select_npy_type' template <> struct select_npy_type { const static NPY_TYPES type = NPY_INT64; }; ^~~~~~~~~~~~~~~~~~~~~~~~~~ matplotlibcpp.h:307:20: error: previous definition of 'struct matplotlibcpp::detail::select_npy_type' template <> struct select_npy_type<int64_t> { const static NPY_TYPES type = NPY_INT64; }; ^~~~~~~~~~~~~~~~~~~~~~~~ matplotlibcpp.h:318:20: error: redefinition of 'struct matplotlibcpp::detail::select_npy_type' template <> struct select_npy_type { const static NPY_TYPES type = NPY_UINT64; }; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ matplotlibcpp.h:311:20: error: previous definition of 'struct matplotlibcpp::detail::select_npy_type' template <> struct select_npy_type<uint64_t> { const static NPY_TYPES type = NPY_UINT64; };

I have tried commenting the above lines, but it goes another error. Any remedies?

Thank you in advance

Ujjwalkanth avatar Oct 09 '20 15:10 Ujjwalkanth

I got the same issue how did you solve it?

Kaiwind88 avatar May 03 '21 03:05 Kaiwind88