error: ‘to_string’ is not a member of ‘std’

I cross-compiled DRonecode – SDK with Hsi’s ARM-HisiV300-Linux-G ++ and reported the error

 error: 'to_string' is not a member of 'std'

Arm-hisiv300-linux-g ++ is c++11 supported, header < string> Also included. Again, error.
Search baidu, it is said that + -std=c++11, but I have added this, still not good, then read a post said that because the tool chain itself does not use the standard c++11 library, resulting in the compilation,
Solution: A Cmakelists. TXT needs to add the following options; The same goes for makefile files;

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
add_definitions(-D_GLIBCXX_USE_C99=1)

 

Read More: