[lammps-users] compiling of library atc

Hi everyone,

When I am trying to compile the library of atc, it always complains that:
Array2D.h: In member function ‘void Array2D::write_restart(FILE*) const’:
Array2D.h:145: error: there are no arguments to ‘fwrite’ that depend on a template parameter, so a declaration of ‘fwrite’ must be available
Array2D.h:145: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
Array2D.h:146: error: there are no arguments to ‘fwrite’ that depend on a template parameter, so a declaration of ‘fwrite’ must be available
make: *** [ATC_Transfer.o] Error 1

Anyone else encountered this before? I tried to add "#include " to Array2D.h but it did not help. Any idea on how this happens?

Thanks.

I haven't seen this error. I'll let Reese respond, since it's
being generated inside the ATC lib.

Steve

Hi
we are very sorry about that, but we haven’t seen it either. You can safely delete the write_restart function from Array2D.h,
since currently it is not used. We will clean this up in a future release.

let me know if you have further issues (and if so what compiler version you are using so I can replicate the problem),
thanks,
Reese

Steve Plimpton wrote: