Tool/software: Code Composer Studio
Hello everyone, I have been developing in C in CCS for a while. I want to port to C++ but am running into all sorts of issues. After battling with them a bit I decided to create a new project completely blank and begin by creating a main.cpp file. Starting from a hello world aspect if you would. So here is some code that builds just fine:
#include <string>
#include <iostream>
using namespace std;
int main()
{
int x = 8;
string c = "whatever";
cout << c << endl;
}
Now when I do the following...
#include <string>
#include <iostream>
using namespace std;
int main()
{
int x = 8;
string c = "whatever";
cout << c << endl;
cout << std::to_string(x) << endl; // #136 namespace "std" has no member "to_string"
}
So the to_string is definately in the std namespace, this namespace isn't polluted or anything, can anyone help here?

