lingtikong / fix-phonon

Automatically exported from code.google.com/p/fix-phonon
6 stars 4 forks source link

Error when compiling fix-phonon and fix-gfmd with new lammps edition #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello, the author. Thanks for your good work, but I'v met some problems when I 
tried to compile it with lammps 20-April-2012 edition, the first problem is 
easy to fix, but how about the second one ? gfmd package also have the same 
problems.

fix_phonon.cpp(44): warning #47: incompatible redefinition of macro "MAX" 
(declared at line 35 of "pointers.h")
  #define MAX(a,b) ((a) > (b) ? (a) : (b))
          ^

fix_phonon.cpp(45): warning #47: incompatible redefinition of macro "MIN" 
(declared at line 34 of "pointers.h")
  #define MIN(a,b) ((a) < (b) ? (a) : (b))
          ^

.......

fix_phonon.cpp(263): error: identifier "END_OF_STEP" is undefined
    mask |= END_OF_STEP;
            ^

compilation aborted for fix_phonon.cpp (code 2)
make[1]: *** [fix_phonon.o] 错误 2
make[1]: *** 正在等待未完成的任务....
make[1]: Leaving directory `/root/source/lammps-20Apr12/src/Obj_mkl'
make: *** [mkl] 错误 2

Original issue reported on code.google.com by realask...@gmail.com on 26 Apr 2012 at 7:34

GoogleCodeExporter commented 9 years ago
Please update your fix-phonon to the latest version as well; the problem is 
caused by incompatibility between different versions. Check:
http://code.google.com/p/fix-phonon/downloads/list

FixGFMD will be updated later on.

thx.

Original comment by kon...@gmail.com on 26 Apr 2012 at 7:39