Hi,
Compiling version 16 Feb 2015 on Mac OS X with gcc failed because of:
…/fix_ave_chunk.cpp: In member function ‘virtual void LAMMPS_NS::FixAveChunk::end_of_step()’:
…/fix_ave_chunk.cpp:934:35: error: ‘ftruncate’ was not declared in this scope
ftruncate(fileno(fp),fileend);
An #include “unistd.h” in fix_ave_chunk.h solves this.
Seems bizarre since ftruncate() is used elsewhere w/o problem…
Best,
Agilio