Hi,

you don't say what platform this is on (or what Fortran compiler
you're using). But, on Win32 platforms, many compilers use a
calling convention which is identical to the 'stdcall' calling convention,
so attributing your 'foreign import' declarations with "stdcall"
should get you there. At least that's the theory..

In general though, there's no built-in support in the FFI for
doing Fortran interop.

hth
--sigbjorn

----- Original Message ----- 
From: "heron_carvalho" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, November 30, 2001 11:48
Subject: Re: FORTRAN and HASKELL


> Hello GHC users,
> 
> We want to reuse FORTRAN libraries within Haskell code. 
> How can we use FFI
> to implement this interface directly ? We know that we 
> can use C to
> implement it indirectly with FFI, but how can we do this 
> directly ? Any
> suggestion ?
> 
> Thanks,
> Heron de Carvalho
> 



_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to