Xiao-Le Deng

Fortran ld: can't open output file for writing: MainDouble, errno=21 for architecture x86_64

2021-04-28 16:40
#Fortran

1. 说明

ifort MainDouble.f90 -o MainDouble && ./MainDouble 

运行Fortran时,遇到了以下错误:

ld: can’t open output file for writing: MainDouble, errno=21 for architecture x86_64

2. 解决方案

因为MainDouble在当前目录的文件夹重名了,所以要更改文件夹名或者执行文件名

ifort MainDouble.f90 -o MainDoubleResult && ./MainDoubleResult 

3. 参考