Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple definition issue #362

Open
Helyousfi opened this issue Jul 21, 2024 · 1 comment
Open

Multiple definition issue #362

Helyousfi opened this issue Jul 21, 2024 · 1 comment

Comments

@Helyousfi
Copy link

Thanks for this project, I got this issue, I installed Python2.7

Build started...
1>------ Build started: Project: Utils, Configuration: Debug x64 ------
1>graph_plotter.cpp
1>Matplotlib\matplotlib-cpp\matplotlibcpp.h(354,10): error C2766: explicit specialization; 'matplotlibcpp::detail::select_npy_type<int64_t>' has already been defined
1>Matplotlib\matplotlib-cpp\matplotlibcpp.h(345,10): message : see previous definition of 'select_npy_type<__int64>'
1>Matplotlib\matplotlib-cpp\matplotlibcpp.h(356,10): error C2766: explicit specialization; 'matplotlibcpp::detail::select_npy_type<uint64_t>' has already been defined
1>Matplotlib\matplotlib-cpp\matplotlibcpp.h(349,10): message : see previous definition of 'select_npy_type'
1>Done building project "Utils.vcxproj" -- FAILED.
2>------ Build started: Project: GraphLibrary, Configuration: Debug x64 ------
2>GraphLibrary.vcxproj -> x64\Debug\GraphLibrary.exe
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
========== Build started at 6:55 PM and took 03,723 seconds ==========

@Helyousfi
Copy link
Author

Solved it by commenting the lines in matplotlibcpp.h ile template <> struct select_npy_type { const static NPY_TYPES type = NPY_INT64; };
template <> struct select_npy_type { const static NPY_TYPES type = NPY_UINT64; };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant