Problem with temporary files under Windows
Arjen Markus
arjen.markus@wldelft.nl
Fri Oct 3 04:21:00 GMT 2008
> Arjen Markus wrote:
>
>> If I unset the environment variable TMP, then the following
>> code fragment causes an access violation:
>>
>> open( 10, status = 'scratch' )
>>
>> Apparently the value of the environment variable is used to
>> determine where the temporary file should be, but if it does
>> not exist, it leads to this error.
>
> This is not gfortran-specific. It has to do with libiberty's
> choose_tmpdir() falling back to MinGW's definition of _P_tmpdir if no
> suitable environment variable is set.
>
> The problem was diagnosed and fixed in this thread, but I don't think
> the fix was ever pushed upstream:
> <http://thread.gmane.org/gmane.comp.gnu.mingw.user/26738/focus=26838>
>
> You should ping that thread and urge them to contribute the change
> otherwise it will continue to be broken.
>
Ah, I will do that, thanks.
Regards,
Arjen
More information about the Fortran
mailing list