Compilation problem with MEAM in latest version of LAMMPS (19 july 2011)

Hi,
      I compiled LAMMPS version 15-mar 2011 with MEAM successfully but am getting the error message when trying to compile the 19-july 2011 version.

I compile meam files with gfortran.

Here is the error message, I get:

Does you link link include -lmeam and a path to lib/meam? If not,
you should start over (make clean-all) and reinstall the MEAM package
and rebuild the code.

Steve

Yes, I included that information in Makefile.package and also in the makefile script. Still getting the same error.

28/2011 10:49 AM, Steve Plimpton wrote:

Hi,
      I compiled MEAM with gfortran and made changes in the Makefile. As Makefile.gfortran says, I need to append LINKFLAGS and USRLIB. I did make changes in my makefile but still getting
these error messages. Below are my input script and error messages. can anyone help me and let me know what I am doing wrong.

ERROR:
pair_meam.o: In function `LAMMPS_NS::PairMEAM::read_files(char*, char*)':
pair_meam.cpp:(.text+0x1b89): undefined reference to `meam_setup_global_'
pair_meam.cpp:(.text+0x2092): undefined reference to `meam_setup_param_'
pair_meam.o: In function `LAMMPS_NS::PairMEAM::coeff(int, char**)':
pair_meam.cpp:(.text+0x28a9): undefined reference to `meam_setup_done_'
pair_meam.o: In function `LAMMPS_NS::PairMEAM::compute(int, int)':
pair_meam.cpp:(.text+0x3016): undefined reference to `meam_dens_init_'
pair_meam.cpp:(.text+0x3212): undefined reference to `meam_dens_final_'
pair_meam.cpp:(.text+0x34de): undefined reference to `meam_force_'
pair_meam.o: In function `LAMMPS_NS::PairMEAM::~PairMEAM()':
pair_meam.cpp:(.text+0x3cf6): undefined reference to `meam_cleanup_'
pair_meam.o: In function `LAMMPS_NS::PairMEAM::~PairMEAM()':
pair_meam.cpp:(.text+0x4056): undefined reference to `meam_cleanup_'
pair_meam.o: In function `LAMMPS_NS::PairMEAM::~PairMEAM()':
pair_meam.cpp:(.text+0x43b6): undefined reference to `meam_cleanup_'
collect2: ld returned 1 exit status
make[1]: *** [../lmp_pri] Error 1
make[1]: Leaving directory `/home/pshuk/LAMMPS/lammps-19Jul11/src/Obj_pri'
make: *** [pri] Error 2