We are doing a C++
project for our uni and its final phase is passing the whole thing into a graphical interface using Qt
.
We use Qt5.4
and g++-5
. These values have been set in the QtCreator
project configuration by selecting the appropriate compiler, g++-5
, and also adding options in the *.pro
file such as -std=c++14
and so on.
Nevertheless we are being stumped by an important issue. No matter what we try, when running qmake so as to auto-generate the precompiled files, in any Makefile
generated by it, the compiler is ALWAYS set to g++
and not g++-5
. We are at the moment obliged to after using qmake
having to change by hand the compiler in the Makefile
on our own, even though we have told it EVERYWHERE that we are using g++-5
and not the normal g++
.
We have tried solutions like in this question: Using c++14
And also changing the compiler in the mkspecs
of the Qt SDK
.
Both have been to no avail and we still can't get the auto-generated Makefile
to use g++-5
unless we change it by hand.
Is this a Qt
issue or are we doing a step incorrectly?
Thanks in advance.