-2
INT32_MAX was not declared in this scope

What is the solution for this (error occurred in C++) ?

Paul R
  • 208,748
  • 37
  • 389
  • 560
Geehan
  • 17
  • 1
  • 2

1 Answers1

2

INT32_MAX is defined in <stdint.h>. You need:

#include <stdint.h>

in the offending source file.

Paul R
  • 208,748
  • 37
  • 389
  • 560