I am compiling the code on solaris 5.11. G++ version is 4.8.2.
The same code works on Ubuntu but gives the error: 'to_string() was not declared in this scope' on solaris.
I went through many links and tried the following things:1. adding std:: before to_string() : this gives error - 'to_string is not a member of std' 2. added 'std=c++11' or 'std=c++0x' while compilation.
Both of the above things does not work.
Is there anything related to Solaris?
Aucun commentaire:
Enregistrer un commentaire