From: James T. <jt...@gm...> - 2012-11-16 16:45:55
|
On 16 November 2012 08:55, Yuan, Fang <fan...@tt...> wrote: > I installed plplot11 in Ubuntu 11.10. > > I use plline() in the subroutine xy_plt1 of "gsa.h" file, they keep > warned me as follows: > > ./gsa.h: In function ‘xy_plt1’: > ./gsa.h:167:4: warning: passing argument 2 of ‘c_plline’ from incompatible > pointer type [enabled by default] > /usr/include/plplot/plplot.h:1260:1: note: expected ‘const PLFLT *’ but > argument is of type ‘float *’ > ./gsa.h:167:4: warning: passing argument 3 of ‘c_plline’ from incompatible > pointer type [enabled by default] > /usr/include/plplot/plplot.h:1260:1: note: expected ‘const PLFLT *’ but > argument is of type ‘float *’ > > > void xy_plt1 ( int nn, float xn[], float yn[]) > > The commends I used in plline is: > plline( nn, xn, yn); > > The plline only draw one string line. > > Does anyone know how to fix it? > PLFLT is in most installations set to be a double rather than a float. By using the PLFLT macro, you will be compatible with either possibility If it is not feasible to change the calling code, then you should convert before plotting the data. |