write, open and read statements in a fortran dll causing program to hang

Arjen Markus arjen.markus895@gmail.com
Tue Feb 2 09:43:00 GMT 2016


Hi Raavi,

just a hunch, but could it be that under C# there is no console to
which the library can write? What happens if you change the write(*,*)
statement to write(10,*) ?

(I think this would be better asked on comp.lang.fortran, as it does
not seem specific to gfortran)

Regards,

Arjen

2016-02-02 10:34 GMT+01:00 Raavi M. Mohindar Rao <raavi.mohindar.rao@gmail.com>:
> Hello,
>
> I have write, open and read statements in a fortran program and compile as,
>
> gfortran -c test.f90
>
> and create a dll with
>
> gfortran -shared test.dll -o test.o
>
> I import this dll in C# with dllimport and call one of the routine. After
> the call the program hangs on write(*,*) statement.
>
> May I know how I can compile test.f90 otherway to make it work with write,
> open and read statements?
>
> Regards,



More information about the Fortran mailing list