Hi all,
2012/2/1 Roac <[email protected]>:
Hi all,
I am a new user of LAMMPS and trying to apply the pymol_asphere tool
to convert dump file to PyMOL input format. However, when I compile the
make file, I keep obtaining the following error message:========================================================================
mpic++ -DMUSE_MPI -g -DDEBUG -DNANCHECK -I. -I. -I. -I. -I. -I.
-c -o ../obj/asphere_vis.o asphere_vis.cpp
asphere_vis.cpp: In function ‘bool parse_to(const char*, std::ifstream&)’:
asphere_vis.cpp:397:41: error: ‘strlen’ was not declared in this scope
asphere_vis.cpp:397:42: error: ‘strncmp’ was not declared in this scope
make: *** [../obj/asphere_vis.o] Error 1
those are trivial to fix. you need to make the following changes
(i.e. insert the lines marked with a '+'). you also need to create
a bin and an obj directory.
axel.
diff --git a/tools/pymol_asphere/src/asphere_vis.cpp
b/tools/pymol_asphere/src/asphere_vis.cpp
index 8009bb2..e601e14 100644
--- a/tools/pymol_asphere/src/asphere_vis.cpp
+++ b/tools/pymol_asphere/src/asphere_vis.cpp
@@ -17,6 +17,7 @@