Denis Kimcherenko(deleted)
|
SDP 650 with GCC 4.8.3 cannot recognize C++11 to_string()
|
Denis Kimcherenko(deleted)
08/16/2016 11:37 AM
post116655
|
SDP 650 with GCC 4.8.3 cannot recognize C++11 to_string()
Try to compile almost "Hello world" as QNX C++ project
#include <iostream>
#include <string>
int main(int argc, char *argv[]) {
std::cout << std::to_string(100500) << std::endl;
return EXIT_SUCCESS;
}
Got compilation error:
/home/dyosick/ide-4.7-workspace/TestToString/TestToString.cc: In function 'int main(int, char**)':
/home/dyosick/ide-4.7-workspace/TestToString/TestToString.cc:6:15: error: 'to_string' is not a member of 'std'
std::cout << std::to_string(100500) << std::endl;
Does anyone now how to enable the C++11 function to_string()?
I compiled with -Wc,std=c++11
|
|
|