LAMMPS compiling problem

So sorry that these days I do not check my inbox.
To be Solved is the best.
Liu Qitao

So sorry that these days I do not check my inbox.
To be Solved is the best.

This is easy to solve. Compile and link lammps with the mipcxx wrapper instead of using g++ explicitly. Just as MPI executables are supposed to be compiled and as shown in practically any MPI tutorial around. That will automatically include all required libraries necessary and avoid linker errors like the one shown.
Axel