Install error on CentOS7 system

On the CentOS7, when I try to install the ATAT

after the execute the command
tar-xvf atat3_36.tat.gz
cd atat
make
then I encountered an error reminding:
./foolproof.sh /home/biaoxu4/bin/ "g++"
I will now perform various checks to see if you have the appropriate software
installed. To override these checks, type
make force
Testing compiler features…
friend : patched
doth : patched
str2s : patched
template : patched
uT : ok
static : patched
Tests successfully passed.
make -C src clean
make[1]: Entering directory /home/biaoxu4/software/atat/src' rm -f *.o *.cc *.c *.h *.exe rm -f maps mmaps emc2 phb checkcell corrdump kmesh genstr gensqs mcsqs nntouch fixcell csfit cv cellcvrt lsfit fitsvsl svsl felec pdef fitfc nnshell memc2 gce gencs triph strpath infdet apb make[1]: Leaving directory /home/biaoxu4/software/atat/src’
make -C src "CXX=g++"
make[1]: Entering directory /home/biaoxu4/software/atat/src' ./patchlang < anyfft.hh > anyfft.h ./patchlang < drawpd.hh > drawpd.h ./patchlang < gstate.hh > gstate.h ./patchlang < lstsqr.hh > lstsqr.h ./patchlang < multipoly.hh > multipoly.h ./patchlang < stringo.hh > stringo.h ./patchlang < array.hh > array.h ./patchlang < equil.hh > equil.h ./patchlang < integer.hh > integer.h ./patchlang < machdep.hh > machdep.h ./patchlang < parse.hh > parse.h ./patchlang < teci.hh > teci.h ./patchlang < arraylist.hh > arraylist.h ./patchlang < fftn.hh > fftn.h ./patchlang < keci.hh > keci.h ./patchlang < kmeci.hh > kmeci.h ./patchlang < mclib.hh > mclib.h ./patchlang < phonlib.hh > phonlib.h ./patchlang < vectmac.hh > vectmac.h ./patchlang < calccorr.hh > calccorr.h ./patchlang < findsym.hh > findsym.h ./patchlang < lattype.hh > lattype.h ./patchlang < misc.hh > misc.h ./patchlang < plugin.hh > plugin.h ./patchlang < version.hh > version.h ./patchlang < calcmf.hh > calcmf.h ./patchlang < fixagg.hh > fixagg.h ./patchlang < linalg.hh > linalg.h ./patchlang < mmclib.hh > mmclib.h ./patchlang < predrs.hh > predrs.h ./patchlang < xtalutil.hh > xtalutil.h ./patchlang < chull.hh > chull.h ./patchlang < fxvector.hh > fxvector.h ./patchlang < linklist.hh > linklist.h ./patchlang < mrefine.hh > mrefine.h ./patchlang < refine.hh > refine.h ./patchlang < clus_str.hh > clus_str.h ./patchlang < getvalue.hh > getvalue.h ./patchlang < linsolve.hh > linsolve.h ./patchlang < mteci.hh > mteci.h ./patchlang < ridge.hh > ridge.h ./patchlang < kspacecs.c++ > kspacecs.cc ./patchlang < tensor.hh > tensor.h ./patchlang < gceutil.hh > gceutil.h ./patchlang < tensorsym.hh > tensorsym.h ./patchlang < binstream.hh > binstream.h ./patchlang < mpiinterf.hh > mpiinterf.h ./patchlang < normal.hh > normal.h ./patchlang < apb.hh > apb.h ./patchlang < opti.hh > opti.h ./patchlang < strinterf.hh > strinterf.h ./patchlang < meshutil.hh > meshutil.h ./patchlang < headers.c++ > headers.cc g++ -O3 -c -o headers.o headers.cc ./patchlang < stringo.c++ > stringo.cc g++ -O3 -c -o stringo.o stringo.cc In file included from misc.h:7, from stringo.h:8, from stringo.cc:1: fxvector.h: In member function 'void BoundingBox<T, D>::before_update() [with T = double; int D = 3]': machdep.h:10:18: error: 'FLT_MAX' was not declared in this scope #define MAXFLOAT FLT_MAX ^~~~~~~ fxvector.h:675:15: note: in expansion of macro 'MAXFLOAT' min.x[i]= MAXFLOAT; ^~~~~~~~ machdep.h:10:18: note: suggested alternative: 'INT_MAX' #define MAXFLOAT FLT_MAX ^~~~~~~ fxvector.h:675:15: note: in expansion of macro 'MAXFLOAT' min.x[i]= MAXFLOAT; ^~~~~~~~ fxvector.h: In member function 'void BoundingBox<T, D>::before_update() [with T = double; int D = 2]': machdep.h:10:18: error: 'FLT_MAX' was not declared in this scope #define MAXFLOAT FLT_MAX ^~~~~~~ fxvector.h:689:15: note: in expansion of macro 'MAXFLOAT' min.x[i]= MAXFLOAT; ^~~~~~~~ machdep.h:10:18: note: suggested alternative: 'INT_MAX' #define MAXFLOAT FLT_MAX ^~~~~~~ fxvector.h:689:15: note: in expansion of macro 'MAXFLOAT' min.x[i]= MAXFLOAT; ^~~~~~~~ array.h: In function 'int find_value(const Array<T>&, const T&)': machdep.h:10:18: error: 'FLT_MAX' was not declared in this scope #define MAXFLOAT FLT_MAX ^~~~~~~ array.h:384:13: note: in expansion of macro 'MAXFLOAT' Real mind=MAXFLOAT; ^~~~~~~~ machdep.h:10:18: note: suggested alternative: 'INT_MAX' #define MAXFLOAT FLT_MAX ^~~~~~~ array.h:384:13: note: in expansion of macro 'MAXFLOAT' Real mind=MAXFLOAT; ^~~~~~~~ make[1]: *** [stringo.o] Error 1 make[1]: Leaving directory /home/biaoxu4/software/atat/src’
make: *** [all] Error 2