You might want to insert a specific flag (which you mentioned)
QMAKE_CXXFLAGS += -std=c++11
in your .pro file, but this will enter exactly this flag on your behalf.
This is not enough. The correct way is to paste instead
CONFIG += c++11
in your .pro file. Then two or three necessary changes are made using qmake :
-std=c++11 .-stdlib=libc++ .- If you are on a Mac,
-mmacosx-version-min=10.6 becomes -mmacosx-version-min=10.7 . (Perhaps some of these changes are necessary for other operating systems or OS versions.)
(A similar problem is in 1 and 2. )
Calaf May 12 '14 at 17:31 2014-05-12 17:31
source share