[lammps-users] problem miking lammps-serial 10-oct

hello.
today i download the new lammps version 10-oct and
make the serial compilation (first i make STUBS). i
use a guadalinex system (linux ubuntu)

when i make it, the make give me the fail included in
this mail.

someone can tell me if this fail is normal?
can be becouse i don't have some files?

thank you for all.
bye

error.txt (403 Bytes)

hi
i solve the previos problem including the library
#include "stdlib.h" in the file pmmm.cpp in the
directory /lammps-1Oct06/src/

but now i have other problem.
i created a file in txt with all reference that C++
tell me that don't exist.

someone tell me how correct it.
thank you and goodbye.

makeerror.txt (221 KB)

hello.
today i download the new lammps version 10-oct and
make the serial compilation (first i make STUBS). i
use a guadalinex system (linux ubuntu)

when i make it, the make give me the fail included
in
this mail.

--snip--

pppm.cpp: En constructor `PPPM::PPPM(int, char**)':
pppm.cpp:56: error: `atof' undeclared (first use
this function)
pppm.cpp:56: error: (Each undeclared identifier is
reported only once for each
   function it appears in.)
make[1]: *** [pppm.o] Error 1
make[1]: Leaving directory

`/home/cualquiera/lammps/lammps-1Oct06/src/Obj_serial'

make: *** [serial] Error 2

The file pppm.cpp is missing the directive

#include "stdlib.h"

at the top. That's what's causing the problem.

Looks like your compiler can’t find the include files like math.h Standard C++ compilers should automatically know where to find these include files. So it looks like this isn’t a LAMMPS problem, but rather an issue on your machine with compiling standard C++. One workaround might be to modify the LAMMPS makefile that you are using (on the CCFLAGS line) to tell it explicitly where to find the standard include files on your machine.

Paul