How can I turn on compiler warnings on Qt Creator?
-
Creator does not build your project, so you need to tell this to your build system. Projects created by Qt Creator will use qmake, so the simplest way to get this set for all projects going forward is to just edit the mkspec used. The mkspecs are found in QTDIR/mkspecs/. Do keep some backups;-)
-
[quote author="Tobias Hunger" date="1343235479"]Creator does not build your project, so you need to tell this to your build system. Projects created by Qt Creator will use qmake, so the simplest way to get this set for all projects going forward is to just edit the mkspec used. The mkspecs are found in QTDIR/mkspecs/. Do keep some backups;-)[/quote]
This is a folder :/ How can I enable warnings in qmake? -
giwrg98: Open the .conf file in that folder and add the flags you want to QMAKE_CXXFLAGS.
Read the included files for more information on what is set up for you already.