我已下载OpenMPI,但在尝试运行简单的并行Hello世界程序后,我收到以下错误:
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
我猜编译器存在问题,因为我在安装OpenMPI时遇到了很多困难。 为了得到我从终端输入的错误:
mpifort -o hello.f90
有人可以帮助我吗?