ubuntu里面的terminal运行 mpicc hello_par.c –o hello_pargcc 这个代码就出错。 错误:error: –o: No such file or directory
To compile a single file foo.c, use
mpicc -c foo.c
To link the output and make an executable, use
mpicc -o foo foo.o
Combining compilation and linking in a single command
mpicc -o foo foo.c试试这样?