Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
error: 'stoi' is not a member of 'std'
WhatIf last edited by
I'm trying to use a class I wrote and tested as plain c++ program in a Qt app but I'm running through problems. I was able to fix one but don't seem to find the solution to the other problem.
the above line is producing error: 'stoi' is not a member of 'std'
recordCount is a string defined as
By the way, I compiled and ran the plain c++ program using Qt Creator successfully.
hmm, it should be ?
maybe try the Example ?
sandy.martel23 last edited by
std::stoi() is c++11
CONFIG += c++11 ?
if using mingw compiler u need to add
CONFIG += c++11 to
your pro file as c++11 support is not enabled pr default for this compiler.
WhatIf last edited by WhatIf
Thank you very much guys :)
CONFIG += c++11 is what was missing. It was included automatically in the plain c++ program by Qt Creator but not for the gui program.