我正在尝试通过ifort在Mac上安装一个包,因为它需要ifort来编译和运行代码,但我遇到了错误 ld: library not found for -lSystem 我不知道oneAPI是否附带了那个库ifort -O3 -warn all -fpp -free -assume byterecl -heap-arrays -nogen-interface -static-intel /opt/intel/oneapi/compiler
大多数情况下,它抱怨索引错误:forrtl: severe (408): fort: (3): Subscript #1 of the array我的代码在我的笔记本上使用较新版本的ifort成功运行了大约70%,但在我的工作站上使用较旧版本的ifort时,只有大约20%的时间成功运行。(有时在我的笔记本电脑上,它可以在第一次运行2-3次,但第四次抛出错误。)
我自己的代