[lammps-users] Error (and fix) when compiling 19 May release of LAMMPS with POEMS on g++

Dear all,

I’m doing a first install of lammps on 32 bit opensuse 1, gcc (SUSE Linux) 4.3.2 [gcc-4_3-branch revision 141291].

I apparently got the 19 May 2009 release at http://lammps.sand.…tars/lammps.tar.gz (via http://lammps.sandia.gov/download.html which states it’s the 9 Jan 2009 version)

I’m doing a full install, and bump into one error which doesn’t seem to be an error from my side (but I could be wrong)

g++ -O3 -I /opt/mpich/include/ -DFFT_FFTW -DLAMMPS_GZIP -I…/…/lib/poems -c fix_poems.cpp
fix_poems.cpp: In member function ‘void LAMMPS_NS::FixPOEMS::readfile(char*)’:
fix_poems.cpp:915: error: ‘atoi’ was not declared in this scope
make[1]: *** [fix_poems.o] Error 1
make[1]: Leaving directory `/home/schraven/WORK/LAMMPS/cleaninstall/lammps-19May09/src/Obj_opensuse’
make: *** [opensuse] Error 2

A bit of googling told me to add:
Putting this into fix_poems.cpp, indeed solves the error.
Maybe this can be fixed for the next release?