Open Ujjwalkanth opened 3 years ago
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 { 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 { 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
I got the same issue how did you solve it?
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; };
^'
template <> struct select_npy_type { const static NPY_TYPES type = NPY_INT64; };
^'
template <> struct select_npy_type { const static NPY_TYPES type = NPY_UINT64; };
^'
template <> struct select_npy_type { const static NPY_TYPES type = NPY_UINT64; };
~~~~~matplotlibcpp.h:307:20: error: previous definition of 'struct matplotlibcpp::detail::select_npy_type~~~~~~~ matplotlibcpp.h:318:20: error: redefinition of 'struct matplotlibcpp::detail::select_npy_type~~~~~~~~~~ matplotlibcpp.h:311:20: error: previous definition of 'struct matplotlibcpp::detail::select_npy_typeI have tried commenting the above lines, but it goes another error. Any remedies?
Thank you in advance