sir .
Scanning dependencies of target nginx-instaban
[ 12%] Building CXX object CMakeFiles/nginx-instaban.dir/main.cpp.o
In file included from /root/nginx-instaban/main.cpp:10:0:
/root/nginx-instaban/IpHashTableGeneric.h: In constructor ‘IpHashTableGeneric::IpHashTableGeneric(uint)’:
/root/nginx-instaban/IpHashTableGeneric.h:34:20: error: there are no arguments to ‘pow’ that depend on a template parameter, so a declaration of ‘pow’ must be available [-fpermissive]
ptrCount = pow(2, bitCount);
^~~
/root/nginx-instaban/IpHashTableGeneric.h:34:20: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/root/nginx-instaban/main.cpp: In function ‘int main()’:
/root/nginx-instaban/main.cpp:104:15: error: ‘INT_MAX’ was not declared in this scope
sleep(INT_MAX);
^~~~~~~
/root/nginx-instaban/main.cpp:104:15: note: suggested alternative: ‘WINT_MAX’
sleep(INT_MAX);
^~~~~~~
WINT_MAX
make[2]: *** [CMakeFiles/nginx-instaban.dir/build.make:63: CMakeFiles/nginx-instaban.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/nginx-instaban.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
sir .
Scanning dependencies of target nginx-instaban
[ 12%] Building CXX object CMakeFiles/nginx-instaban.dir/main.cpp.o
In file included from /root/nginx-instaban/main.cpp:10:0:
/root/nginx-instaban/IpHashTableGeneric.h: In constructor ‘IpHashTableGeneric::IpHashTableGeneric(uint)’:
/root/nginx-instaban/IpHashTableGeneric.h:34:20: error: there are no arguments to ‘pow’ that depend on a template parameter, so a declaration of ‘pow’ must be available [-fpermissive]
ptrCount = pow(2, bitCount);
^~~
/root/nginx-instaban/IpHashTableGeneric.h:34:20: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/root/nginx-instaban/main.cpp: In function ‘int main()’:
/root/nginx-instaban/main.cpp:104:15: error: ‘INT_MAX’ was not declared in this scope
sleep(INT_MAX);
^~~~~~~
/root/nginx-instaban/main.cpp:104:15: note: suggested alternative: ‘WINT_MAX’
sleep(INT_MAX);
^~~~~~~
WINT_MAX
make[2]: *** [CMakeFiles/nginx-instaban.dir/build.make:63: CMakeFiles/nginx-instaban.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/nginx-instaban.dir/all] Error 2
make: *** [Makefile:84: all] Error 2