Simple single-file example won't compile #231
-
I am using Arch Linux and have installed the package using "yay -S matplotplusplus". I used a simple example from the docs, as follows: #include <matplot/matplot.h>
int main() {
using namespace matplot;
std::vector<double> t = iota(0, pi / 50, 10 * pi);
std::vector<double> st = transform(t, [](auto x) { return sin(x); });
std::vector<double> ct = transform(t, [](auto x) { return cos(x); });
auto l = plot3(st, ct, t);
show();
} (The package seems to be installed just fine, the "clangd language server" is recognizing everything, and pressing "go-to definition" in my editor on However, when I try to compile the file with
I must say that this error message is quite cryptic to me, and pasting the error message on the internet doesn't seem to lead me anywhere. What am I missing here? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
https://alandefreitas.github.io/matplotplusplus/integration/cmake/find-as-external-package/ |
Beta Was this translation helpful? Give feedback.
https://alandefreitas.github.io/matplotplusplus/integration/cmake/find-as-external-package/
follow this page. It works.