1. 程式人生 > >Qt中 error: 'to_string' is not a member of 'std'解決方法

Qt中 error: 'to_string' is not a member of 'std'解決方法

最近要使用到Qt5.5+OpenCV2.4.11,昨天花了一天時間在windows下配置好了Qt後,構建時報錯:'to_string' is not a member of 'std'

網上查了一下資料,要在.pro裡新增如下:

CONFIG += C++11  

重新構建後,編譯通過。