error calling c functions from gfortran
Steve Kargl
sgk@troutmask.apl.washington.edu
Sat Feb 10 16:57:00 GMT 2007
On Sat, Feb 10, 2007 at 04:47:34PM +0000, mike.howell@mchsi.com wrote:
> I get the wrong answer calling c programs from a gfortran program. The same c
> functions work when called from a c main program. I guess I need some kind of
> interface statement to call c functions from gfortran. Can anyone help me? I
> have attached the make file and source code. The shift result is incorrect. A rt
> shift on the number 8 should return 4 & lft shift 16.
>
For others on the list, I've already answered Mike in a private
email. He needs to change his c code from pass-by-value to
pass-by-reference.
--
Steve
More information about the Fortran
mailing list