to_string not declared in scope

前端 未结 6 905
[愿得一人]
[愿得一人] 2020-12-15 05:16

I am trying to make the to_string(NUMBER) function work in my Ubuntu computer for weeks but it never ever works in the QT environment or anywhere else. My code

6条回答
  •  孤街浪徒
    2020-12-15 05:48

    you must compile the file with c++11 support

    g++ -std=c++0x  -o test example.cpp
    

提交回复
热议问题