In a message dated 1/31/2000 5:01:18 PM Pacific Standard Time,
[log in to unmask] writes:
> FORTRAN always passes by reference
Well, no. But that is true of this brand of Fortran.
>you need to declare
> void testfortran(double *);
>and pass arguments accordingly.
Yes, and, if you don't know this much C or Fortran, you could exercise f2c
-aA on your Fortran subroutine skeleton (f2c won't handle f90 syntax) to see
what is expected for an f2c style Fortran to C interface. HPUX Fortran has
an option -ppu to handle the symbols closer to f2c style and avoid some of
the clashes between Fortran and C name spaces.
Tim
[log in to unmask]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|