meam package problems in building lammps as a library

Hi,

I am going to use the meam potential. I build the MEAM package as the way in the readme file and it works in LAMMPS.

The problem is that I am going to build lammps as a library and use it by my own code. I did it in this way:

you need to link with the gfortran compiler runtime library when you compile your own binary. Makefile.lammps is not applied since you are linking manually.​ as mentioned before, you must study very carefully how the LAMMPS executable is linked and you will know what you have to do.