I wanted to use the to_string function in my program built with gcc 4.7.1. But i was getting an error that it was not declared in the scope. So, I downloaded the patch from the link: http://tehsausage.com/mingw-to-string and followed all the instructions in that link.
But how do I access the to_string function after doing this?
I tried using your code in my program, but I got the following error messages.
E:\programs\_Projects\Hexcon\generator\main.cpp|8|error: invalid use of incomplete type 'std::ostringstream {aka class std::basic_ostringstream<char>}'|
e:\pro_lan\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.7.1\include\c++\iosfwd|103|error: declaration of 'std::ostringstream {aka class std::basic_ostringstream<char>}'|
The main.cpp is the file that i'm working on. Well, i'm using the code::blocks 12.11 IDE.