Liblammps_mpi.so.0: undefined reference to `plumed_free' and `plumed_malloc'

when I using cmake to compile plumed2-2.9 into lammps-29Aug2024. In the last I got this error.
I using “nm -D libplumed.so | grep plumed”, this not find “plumed_free” and “plumed_malloc”. But this plumed is worked well in gromacs+plumed. I don’t know how to solve this error.

LAMMPS uses neither of the two calls, so this must be an internal Plumed issue.

Thanks for your reply. Now I used “static mode” to compile plumed into lammps, and it works.

1 Like