Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » to_string was not declared in this scope
to_string was not declared in this scope [message #1239684] Tue, 04 February 2014 14:59
Eclipse UserFriend
#include "Person.h"
#include <string>
using namespace std;

string Person::toSimpleString(){
string a = to_string(3.1415926);
return getFirstName() + " " + getLastName() + ", Age " + a;
}

I am getting the error "to_string not declared in this scope", all of my other strings are working. What did I do wrong?
Previous Topic:Files excluded from build no longer appear with slash at bottom of list.
Next Topic:c++ and javascript in a single project
Goto Forum:
  


Current Time: Thu Nov 06 19:22:07 EST 2025

Powered by FUDForum. Page generated in 0.03284 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top