Error: 'stol' was not declared in this scope

I was trying to parse a string read from my SD card using stol when this error occured. Why did this happen when I included the necessary libraries for this? Thank you

The standard C function is strtol not stol. atoi is another alternative.

http://www.cplusplus.com/reference/cstdlib/strtol/

4 Likes

Thanks. I got it now!