I'm trying to compile some third party project (FreeFT). I've installed all required dependencies, but when I issue make game
this error "‘INT_MAX’ was not declared in this scope" occurs for any compiler I set (COMPILER=g++
, COMPILER=clang
). I've noticed that in the problematic file where this is being used, the author just removed #include <limits.h>
line in the latest few commits without any reasonable and clear explanation. Of course, when I manually add the #include <limits.h>
line to the file, the compiler is happy, but I think it's not a good and desired behavior to make code changes in the third party project that is supposed to compile and run without problems without making any changes in the code itself.
My specs:
- gcc (Debian 10.2.1-6) 10.2.1
- Debian clang version 11.0.1-2
Is there a possibility that the author assumes that the constant is being "hard-coded" or "build in" in the compiler itself?