请教关于软件编译的错误(需要相关库函数)
发表于 : 2008-07-02 14:52
我在安装一个依赖并行环境的软件时候,编译发生如下错误:
cc -c -Wall absorb.c
在包含自 absorb.c:13 的文件中:
fd.h:15:17: 错误: mpi.h:没有该文件或目录
In file included from absorb.c:13:
fd.h:38: 错误: expected declaration specifiers or ‘...’ before ‘MPI_Request’
fd.h:38: 错误: expected declaration specifiers or ‘...’ before ‘MPI_Request’
make: *** [absorb.o] 错误 1
应该是缺少并行环境的库吧,我在新立得上安装了lam4-dev,以及 sudo apt-get install openmpi-*
但是编译的时候还是出现相同的错误,请问应该如何解决!
cc -c -Wall absorb.c
在包含自 absorb.c:13 的文件中:
fd.h:15:17: 错误: mpi.h:没有该文件或目录
In file included from absorb.c:13:
fd.h:38: 错误: expected declaration specifiers or ‘...’ before ‘MPI_Request’
fd.h:38: 错误: expected declaration specifiers or ‘...’ before ‘MPI_Request’
make: *** [absorb.o] 错误 1
应该是缺少并行环境的库吧,我在新立得上安装了lam4-dev,以及 sudo apt-get install openmpi-*
但是编译的时候还是出现相同的错误,请问应该如何解决!