I have created a dll of a fortran routine. When I try to use the corresponding mex function in Matlab I obtain the following error: "error during write, unit -1" and Matlab is closed. Can anybody help me? Thank you, Grard Goffaux
No.1 | | 845 bytes | |
Grard Goffaux wrote: > > I have created a dll of a fortran routine. When I try to use the > corresponding mex function in Matlab I obtain the following error: > "error during write, unit -1" > and Matlab is closed. > Can anybody help me? > Thank you, > Grard Goffaux
It think that you either write the the screen or did not open the file prior to reading. In the past I had to open a file for unit 6 and add additional code to open a window. Then we used the Visual Fortran Compiler.
In older versions of MATLAB (version 5 I believe) we did not run in to problems since the output channel was available.
The program should work when you open a unit and write to it.