Hey guys,
I'm just getting into developing homebrew for the 3ds and I'm really looking to use C++ over c.
Call me lazy, but I just want to use the to_string function to convert integers to strings. While it looks like some C++11 support is there (such as "auto" working), I get this error....
If I try removing the "std::" from the function, it just says that to_string is undefined.
Is there something I'm missing blatantly? My makefile contains....
EDIT 2: Solved. Am dumb. Forgot to add
and
I'm just getting into developing homebrew for the 3ds and I'm really looking to use C++ over c.
Call me lazy, but I just want to use the to_string function to convert integers to strings. While it looks like some C++11 support is there (such as "auto" working), I get this error....
Code:
string consolePos(int r, int c)
{
string result = "\x1b[" + std::to_string(r) + ";" + std::to_string(c) + "H";
return result;
}
Code:
In function 'std::__cxx11::string consolePos(int, int)':
error: 'to_string' is not a member of 'std'
If I try removing the "std::" from the function, it just says that to_string is undefined.
Is there something I'm missing blatantly? My makefile contains....
Code:
CXXFLAGS := $(COMMON_FLAGS) -std=c++11
EDIT 2: Solved. Am dumb. Forgot to add
Code:
#include <iostream>
Code:
#include <string>
Last edited by Stratbasher,