M1 arm64 compatibility issues? #284
Unanswered
jeansjeans
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm trying to install matplot++ on my new MacBook Pro (M1 Pro).
I checked that I had all of the dependencies installed already (using brew).
I followed the instructions to build and install from source and was able to successfully install to /usr/local/
However, when I try to compile a simple program like this:
I get the following error:
Undefined symbols for architecture arm64:
"matplot::figure_type::show()", referenced from:
matplot::show() in matplottest-d8701a.o
"matplot::gca()", referenced from:
auto matplot::plot<std::__1::vector<int, std::__1::allocator >, std::__1::vector<int, std::__1::allocator >&>(std::__1::vector<int, std::__1::allocator >, std::__1::vector<int, std::__1::allocator >&) in matplottest-d8701a.o
"matplot::gcf()", referenced from:
matplot::show() in matplottest-d8701a.o
"matplot::hold(bool)", referenced from:
_main in matplottest-d8701a.o
"matplot::axes_type::plot(std::__1::vector<double, std::__1::allocator > const&, std::__1::vector<double, std::__1::allocator > const&, std::__1::basic_string_view<char, std::__1::char_traits >)", referenced from:
std::__1::shared_ptrmatplot::line matplot::axes_type::plot<std::__1::vector<int, std::__1::allocator >, std::__1::vector<int, std::__1::allocator > >(std::__1::vector<int, std::__1::allocator > const&, std::__1::vector<int, std::__1::allocator > const&, std::__1::basic_string_view<char, std::__1::char_traits >) in matplottest-d8701a.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Please advise. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions