Re: [Plplot-devel] Fortran Example 19 problem

2009-11-12 Thread Arjen Markus
Hi Hazen, hm, I will have to look into these issues. Functions in Fortran are actually rather simple (*): y = floor(x) should work, but I may need to add some declarations (my FORTRAN 77 skills are getting a bit rusty, as Fortran 95 offers much better tools to make the compiler agree with you).

Re: [Plplot-devel] Fortran Example 19 problem

2009-11-12 Thread Davide Cesari
Hi, since floor is declared as function, you need something like times = floor() times = call floor() is definitely wrong; maybe, if you have declared "implicit none", you need to declare floor as real at the beginning of the program unit, something like: real floor Davide Hazen Babc

Re: [Plplot-devel] Fortran Example 19 problem

2009-11-12 Thread Arjen Markus
Hi Davide, Hazen, yes, g77 is complaining because of the "implicit none" statements. I have now added "external floor" and "real*8 floor", so the error messages are gone. The second (warning) message is about calling plslabelfunc with a literal 0, rather than a procedure name. gfortran ignores th

Re: [Plplot-devel] Fortran Example 19 problem

2009-11-12 Thread Davide Cesari
Hi Arjen, Arjen Markus ha scritto: > Hi Davide, Hazen, > > yes, g77 is complaining because of the "implicit none" statements. > I have now added "external floor" and "real*8 floor", so the error > messages are gone. > > The second (warning) message is about calling plslabelfunc with a > literal

Re: [Plplot-devel] Fortran Example 19 problem

2009-11-12 Thread Arjen Markus
Hi Davide, On 2009-11-12 10:22, Davide Cesari wrote: > Hi Arjen, > > Arjen Markus ha scritto: >> Hi Davide, Hazen, >> >> yes, g77 is complaining because of the "implicit none" statements. >> I have now added "external floor" and "real*8 floor", so the error >> messages are gone. >> >> The second

Re: [Plplot-devel] Fortran Example 19 problem

2009-11-12 Thread Andrew Ross
A further warning which I think results from your recent changes (this is with gfortran 4.4.1) [100%] Building C object bindings/f77/CMakeFiles/plplotf77cd.dir/scstubs.c.o /home/andrew/software/plplot/plplot/bindings/f77/scstubs.c: In function plslabelfunc_: /home/andrew/software/plplot/plplot

Re: [Plplot-devel] Getting rid of the last tmpnam use in our code

2009-11-12 Thread Andrew Ross
Hi Alan, Thank's for reminding me about this. To do this right is, as you say, not trivial. I think we need to write a wrapper function which we use in the code, and which in turn will use mkstemp or some windows equivalent. Note that your windows "fix" uses mktemp which is itself not secure. A

Re: [Plplot-devel] Getting rid of the last tmpnam use in our code

2009-11-12 Thread Alan W. Irwin
On 2009-11-12 20:52- Andrew Ross wrote: > > Hi Alan, > > Thank's for reminding me about this. To do this right is, as you say, > not trivial. I think we need to write a wrapper function which > we use in the code, and which in turn will use mkstemp or some > windows equivalent. Agreed. > > N