[lammps-users] Building meam package: Unequal no. of arguments in call statement and subroutine declaration


I am trying to build LAMMPS with MEAM package in MS Visual Studio. I get the error message: “error LNK2019: unresolved external symbol G_GAM@…1435… referenced in function PHI_MEAM”. It turns out that the calls to subroutine G_gam in meam_setup_done.F have only 4 arguments whereas the subroutine G_gam has 5 arguments.

How can I resolve this?



Greg - it does look some calls to G_gam inside the MEAM lib don't
include the last errorflag arg - any ideas on this?