Friday, August 30, 2013

Enabling C++ 11 support in Qt 5.x

Since the support of most the new features of the C++11 language standard is quite spread in most of recent C++ compilers (see this comparison for instance), still several of such compilers need command line options to enable C++11 support. While using qmake as your build system, you can add the following line to your qmake project file in order to produce a make file with suitable options for your compiler: "CONFIG += c++11".