[lammps-users] failed to build lammps

I was trying to build lammps-21May2008 on my own laptop.

I got the following error,

any ideas?

[computing@…33…436… src]$ make -f Makefile.list serial
make[1]: Entering directory /home/computing/Download/lammps-21May08/src/Obj_lenovo' g++ -g -O -I../STUBS -DFFT_NONE -c change_box.cpp change_box.cpp: In member function ‘void LAMMPS_NS::ChangeBox::command(int, char**)’: change_box.cpp:39: error: ‘strcmp’ was not declared in this scope make[1]: *** [change_box.o] Error 1 make[1]: Leaving directory /home/computing/Download/lammps-21May08/src/Obj_lenovo’
make: *** [lenovo] Error 2

I think an earlier version of change_box.cpp had

#include "string" instead of
#include "string.h"

at the top. Most compilers don't complain.
The fully patched version on the WWW site
fixes this issue. Or you can edit the file yourself.


2008/7/10 yang Zhiping <[email protected]...>: