error: ‘INT32_MAX’ was not declared in this scope

Quoted from the man page, “C++ implementations should define these macros only when __STDC_LIMIT_MACROS is defined before <stdint.h> is included”.

So try:

#define __STDC_LIMIT_MACROS
#include <stdint.h>

Leave a Comment