Errors in compiling the MEAM included in lammps

To link both C++ (LAMMPS) and Fortran (MEAM lib)
code, you have to include all the libraries required
by your compilers. It’s best to use consistent compilers
for both the C++ and Fortran files, then the compilers
should provide all the needed libs. You just need
to probably Google to find out which ones they are.