Problem compiling NONMEM with mingw gfortran 4.3.0 builds

Steve Chapel steven.chapel@sbcglobal.net
Mon Jul 16 21:33:00 GMT 2007


Thomas Koenig wrote:
> On Mon, 2007-07-16 at 13:21 -0400, Steve Chapel wrote:
>   
>> Steve Chapel wrote:
>>     
>>> After fixing all executables and libraries to use gfortran, the 
>>> program compiled and ran, but I got a Fortran runtime error: Bad file 
>>> descriptor. It also shows the offending source code line as "(unit=29, 
>>> file='CONOUT$')". Should CONOUT$ be con instead?
>>>       
>> My problems with gfortran now boil down to a problem demonstrated by the 
>> following program:
>>
>>        character*72 fnint
>>        data fnint /'con'/
>>        i=index(fnint,' ');
>>        open(unit=29,file=fnint(1:i-1))
>>        write(29,100)
>> 100    format('1Hello, world!')
>>        end
>>
>> C At line 4 of file bug.for (unit = 29, file = '')
>> C Fortran runtime error: File 'con' does not exist
>>     
>
> Isn't "con" a special file that directs output to the console?  In that
> case, it is quite possible that the interaction between libgfortran
> and mingw's library gets something wrong.
>
> Can you file a PR at http://gcc.gnu.org/bugzilla ?  This needs to be looked
> at.
>
> 	Thomas
>
>
>   
Okay. It's filed in <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32784>.

Thanks,
Steve



More information about the Fortran mailing list