Symbol nullptr is not defined in current scope

Hello,
I am trying to get another person’s code running in my setup and I am getting the following error:

The offending line of code:

I am using root version:
ROOT 5.34/24 (v5-34-24@v5-34-24, Dec 02 2014, 18:18:32 on linuxx8664gcc)
The code is called somewhere inside a long compilation script.
Do you have any ideas of how to fix this?
Many Thanks,
Geoff

Hello,
replacing “nullptr” with “NULL” gets it to work, but it would be nice to know why “nullptr” doesn’t work.
Cheers,
Geoff

stackoverflow.com/questions/1282 … is-nullptr
cplusplus.com/reference/cstddef/nullptr_t

nullptr is only available from C++11 onwards and CINT in ROOT 5.34 does not support C++11. So, either change it with NULL or migrate to ROOT 6 with CLING.