You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have built the library from source on Ubuntu on Windows (5.10.60.1-microsoft-standard-WSL2) and I am trying to run a simple example from the Documentation:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I have built the library from source on Ubuntu on Windows (5.10.60.1-microsoft-standard-WSL2) and I am trying to run a simple example from the Documentation:
######################################################################
#include
#include <matplot/matplot.h>
int main() {
using namespace matplot;
std::vector x = linspace(0, 2 * pi);
std::vector y = transform(x, [](auto x) { return sin(x); });
plot(x, y, "-o");
}
######################################################################
I try to compile it with the following command:
$ g++ -std=c++2a LinPlot.cc -lmatplot -ljpeg
And I receive the following message:
Any ideas?
The undefined references indicate that there must be some issue with including some of the functionality in nodesoup library.
Any suggestions on how I can make it work?
Beta Was this translation helpful? Give feedback.
All reactions