Reputation:
I'm reading everywhere that to add flags to the compiler we have to, inside the .pro, add command like this:
QMAKE_CXXFLAGS += -Wimplicit-function-declaration
Right, I'm under Linux 64bit, Qt5 and adding this inside my .pro doesn't change anything
It turns out that I don't see the flag inside the compilation line, and the CXXFLAGS inside the Makefile generated does not contain my flag !?
Upvotes: 0
Views: 1892
Reputation: 770
I found that sometimes qmake is a bit lazy and won't regenerate the Makefile even though the .pro has changed. Try rebuilding everything, or at least deleting the Makefile.
Upvotes: 3