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.