Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - SDP 650 with GCC 4.8.3 cannot recognize C++11 to_string(): (2 Items)
   
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
Re: SDP 650 with GCC 4.8.3 cannot recognize C++11 to_string()