Am 25.03.2015 um 12:03 schrieb Allan Sandfeld Jensen: > On Wednesday 25 March 2015, Wilhelm wrote: >> Hi all, >> >> the qmake documentation says that is is possible to set >> >> CONFIG+= c++14 >> >> But if I do so, the generated makefile still contains the flag >> >> -std=c++11 >> >> So, whats wrong here? > > You can check mkspecs/features/c++14.prf for the conditions that triggers it. > > It should have worked. You probably need a cleaner build. >
As you can see running qmake with linux-clang doesn't work: ⌁68% [lmeier:/home/lmeier/Lehre/Eigene/Prog2NeuesKonzept/SS2015/vl01] $ qmake -spec linux-clang ⌁68% [lmeier:/home/lmeier/Lehre/Eigene/Prog2NeuesKonzept/SS2015/vl01] $ make clean all rm -f main.o rm -f *~ core *.core clang++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -std=c++11 -Wall -W -fPIE -I. -I/usr/lib/qt/mkspecs/linux-clang -o main.o main.cc clang++ -ccc-gcc-name g++ -o vl01 main.o But running qmake with linux-g++ does work: ⌁68% [lmeier:/home/lmeier/Lehre/Eigene/Prog2NeuesKonzept/SS2015/vl01] $ qmake -spec linux-g++ ⌁68% [lmeier:/home/lmeier/Lehre/Eigene/Prog2NeuesKonzept/SS2015/vl01] $ make clean all rm -f main.o rm -f *~ core *.core g++ -c -pipe -O2 -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -std=c++1y -Wall -W -fPIE -I. -I/usr/lib/qt/mkspecs/linux-g++ -o main.o main.cc g++ -Wl,-O1 -Wl,-O1,--sort-common,--as-needed,-z,relro -o vl01 main.o -- Wilhelm w.me...@unix.net _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest