Hi All,
I’m trying to compile lammps in eclipse on my machine. I had no problem in compiling lammps in terminal and it went smooth. In eclipse it builds all the source files but at the end when it wants to build the target I get following errors:
./src/angle.o: In function Intracomm': /usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/intracomm.h:25: undefined reference to
MPI::Comm::Comm()’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/intracomm.h:25: undefined reference to MPI::Comm::Comm()' ./src/angle.o: In function
Intracomm’:
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/intracomm_inln.h:23: undefined reference to MPI::Comm::Comm()' ./src/angle.o: In function
MPI::Op::Init(void ()(void const, void*, int, MPI::Datatype const&), bool)’:
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/op_inln.h:122: undefined reference to ompi_mpi_cxx_op_intercept' ./src/angle.o: In function
Intracomm’:
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/intracomm.h:25: undefined reference to MPI::Comm::Comm()' /usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/intracomm.h:25: undefined reference to
MPI::Comm::Comm()’
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/intracomm.h:25: undefined reference to MPI::Comm::Comm()' ./src/angle.o: In function
Intracomm’:
/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/intracomm_inln.h:23: undefined reference to MPI::Comm::Comm()' /usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/intracomm_inln.h:23: undefined reference to
MPI::Comm::Comm()’
./src/angle.o:/usr/lib/openmpi/include/openmpi/ompi/mpi/cxx/intracomm_inln.h:23: more undefined references to MPI::Comm::Comm()' follow ./src/angle.o:(.rodata._ZTVN3MPI3WinE[vtable for MPI::Win]+0x48): undefined reference to
MPI::Win::Free()’
./src/angle.o:(.rodata._ZTVN3MPI8DatatypeE[vtable for MPI::Datatype]+0x78): undefined reference to `MPI::Datatype::Free()’
collect2: ld returned 1 exit status
make: *** [lammps-10Apr12_Mod] Error 1
I would appreciate any help to resolve this issue. By the way I use mpicc for compilation in both eclipse and terminal.
Best,
Kasra.