[問題] C++ std::to_string無法編譯

看板C_and_CPP作者 (綠教徒)時間10年前 (2014/04/18 01:31), 編輯推噓1(101)
留言2則, 1人參與, 最新討論串1/2 (看更多)
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) Code::Blocks 13.12 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) 問題(Question): 是這樣的 我的程式內要用到std::to_string() 已經將compiler設定成支援c++11 可是編譯時一直出現error: 'to_string' is not a member of 'std' 用google搜了一下 有人說是MinGW的問題 請問我在windows下有什麼解決的方法嗎 感謝> < -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.160.225.87 ※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1397755874.A.9B4.html

04/18 03:01, , 1F
使用非codeblocks內建的mingw(自己另外裝
04/18 03:01, 1F

04/18 03:02, , 2F
應該是因為mingw裡面的gcc是4.7版 所以沒支援
04/18 03:02, 2F
文章代碼(AID): #1JK0_Ycq (C_and_CPP)
文章代碼(AID): #1JK0_Ycq (C_and_CPP)