gcc error : undefined reference to `itoa’
itoa is a non-standard function which is supported by some compilers. Going by the error, it’s not supported by your compiler. Your best bet is to use snprintf() instead.
itoa is a non-standard function which is supported by some compilers. Going by the error, it’s not supported by your compiler. Your best bet is to use snprintf() instead.
In C++11 you can use std::to_string: If you’re working with prior to C++11, you could use C++ streams: Taken from http://notfaq.wordpress.com/2006/08/30/c-convert-int-to-string/