[Interest] CONFIG c++2a vs. QMAKE_CXXFLAGS += -std=c++2a

Thiago Macieira thiago.macieira at intel.com
Wed May 6 01:53:51 CEST 2020


On Tuesday, 5 May 2020 16:26:55 PDT Bernhard Lindner wrote:
> Hi!
> 
> Can somebody please explain the difference between the following QMAKE
> project lines when building a GCC project:
> 
> CONFIG += c++2a
> 
> QMAKE_CXXFLAGS += -std=c++2a
> 
> I expected both to have the same effect but there must be a difference since
> the latter gives me compilation errors while the first does not.

The latter is equivalent to:

CONFIG += c++2a strict_c++

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel System Software Products





More information about the Interest mailing list