[lammps-users] meam package making

Hello, everyone

I try to make lammps with meam package. g77, g++ , gfortran, ifort and gcc are installed. so I type
make -f Makefile.ifort
under the “lib” directory and get a file ‘libmeam.a’. Then I come to ‘src’ directory and type
‘make yes-meam’ and ‘make g++_meam’

part of the file ‘g++_meam’ is
CC = g++
CCFLAGS = -g -O -I…/STUBS -DFFT_NONE
-I/home/syl/l/la/lib/meam \

LINK = g++
LINKFLAGS = -O -L…/STUBS
-L/home/syl/l/la/lib/meam \

USRLIB = -lmpi -lmeam

SYSLIB =
ARCHIVE = ar
ARFLAGS = -rc
SIZE = size

then comes to error: many ’ undefined reference to… I just list few lines of them

/home/syl/l/la/lib/meam/libmeam.a(meam_setup_done.o): In function zbl_': meam_setup_done.F:(.text+0x1413): undefined reference to __svml_exp2’
/home/syl/l/la/lib/meam/libmeam.a(meam_setup_done.o): In function get_zij2_': meam_setup_done.F:(.text+0x14b3): undefined reference to for_cpstr’
meam_setup_done.F:(.text+0x14da): undefined reference to for_cpstr' meam_setup_done.F:(.text+0x1501): undefined reference to for_cpstr’
meam_setup_done.F:(.text+0x1528): undefined reference to for_cpstr' meam_setup_done.F:(.text+0x154f): undefined reference to for_cpstr’
what is the possible reason?

thank you in advance.

sincerely yours
syl

You're not including some needed lo-level Fortran library
in your link statement in the Makefile.foo. Which one(s)
that are needed will be specific to your Fortran, when
linking it into a C++ program.

Steve