It is a known issue that std::to_string does not work. Even std::itoa didn't work for me. What can I do to convert an int to a string? I don't care much about performance, all I need it is to work without being too slow.
Edit: I have the latest mingw 32 installed, std::to_string still does not work. I installed it from here: http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.8.1/32-bit/threads-win32/sjlj/