Montaz Ali a écrit :
Dear Colleagues
I am a pascal programmer and used to do programming in Unix environment. Now I am in a new place where it has only Linux machine. I would like to call a fortran routine from a main pascal program. I used to do this in Sun machine using the following command
pc -o output pf.p ff.o
where ff.o is made using f77 -c ff.f; out is executable file.
In side my pascal program I defined (declared) the fortran subroutine as follows:
function xx(var ...; var ...) :double; external fortran OR function xx(var ...; var ...) :double; external;
use rather: function xx(var ...; var ...) :double; asmname 'ff'; (pascal and external names may differ, pascal name is case insensitive, external name is case sensitive)
(I believe here is my problem; above lines)
In my current machine I have g77 (fortran equivalent) and gpc. I can get ff.o but when I use on-line commamd : gpc -o output pf.p ff.o.
Should work. -- Maurice Lombardi Laboratoire de Spectrometrie Physique, Universite Joseph Fourier de Grenoble, BP87 38402 Saint Martin d'Heres Cedex FRANCE Tel: 33 (0)4 76 51 47 51 Fax: 33 (0)4 76 51 45 44 mailto:Maurice.Lombardi@ujf-grenoble.fr