我正在尝试使用uClibc交叉编译程序,并且在执行链接时,我总是收到对std :: to_string的未定义引用的错误。我已经应用了解决方法,这应该有助于解决这个问题:
{
"errors": [
{
"status": 404,
"message": "Not Found"
}
]
}
这有助于构建CXX对象,但在解决问题时又回来了。
这是错误:
#include <string>
#include <sstream>
template <typename T>
std::string to_string(T value)
{
std::ostringstream os ;
os << value ;
return os.str() ;
}
int main()
{
std::string perfect = to_string(5) ;
}
感谢您的建议。