It was a matter of how I built Plpot, it's fixed now, thanks On Thu, Jan 9, 2020 at 3:53 PM Xavier Cardil <cardil.xav...@gmail.com> wrote:
> Following this document : > https://www.absoft.com/wp-content/uploads/2015/08/plplot-5.3.1.pdf > > The C++ programmer can write: plstream p( ... ); p.env( ... ); p.line( ... >> ); > > > I have "started" to port my Python program to C++, and trying to > instantiate plstream and, as example, call start() and give it some > parameters: > > const char *x = "xwin"; > > PLINT once = 1; > > PLINT twice = 1; > > cout << x << endl; > > plstream p; > > p.start(x, once, twice); > > But I get this at compile: > > [build] CMakeFiles/autoplot++.dir/main.cpp.o: In function `main': > [build] /home/xavier/autoplot_plus/main.cpp:521: undefined reference to > `plstream::plstream()' > [build] /home/xavier/autoplot_plus/main.cpp:521: undefined reference to > `plstream::~plstream()' > [build] collect2: error: ld returned 1 exit status > [build] make[2]: *** [autoplot++] Error 1 > [build] make[1]: *** [CMakeFiles/autoplot++.dir/all] Error 2 > [build] make: *** [all] Error 2 > > I'm not sure what's missing here, I'd appreciate if you guys can give me a > hint > > Thanks > > Xavier > >
_______________________________________________ Plplot-general mailing list Plplot-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-general