MAXINT and MININT in ROOT

Hello All,
I am trying to use some values defined in values.h (in /usr/include/values.h)

and tried both these versions:

#include “/usr/include/values.h”
{
cout << MAXINT << endl;
}

and
#include <values.h>
{
cout << MAXINT << endl;
}

Both return errors shown below

Error: Too many ‘}’ tmpfile:15:
*** Interpreter error recovered ***

How do I use maxint and so on without redefining them. Thanks

MT

Hi,

I successfully use INT_MAX and INT_MIN defined in cint/include/limits.h:

#include <limits> cout << INT_MAX << endl; cout << INT_MIN << endl;

Hi,

stdint.h contains code that can not be parses by CINT. Use INT_MAX and INT_MIN instead.

Philippe