Add the -g and -Wall options of GCC compiler

  • Greetings.

    I want to compile my Qt application with the -g and -Wall options of gcc in order to use Valgrind to make some revisions.

    That said, my specific questions are:

    1. When an application is built in Debug mode, these options (-g, -Wall or both) are set by default or should I set it myself manually?

    2. With Qt Creator, where I can view and set these options compile?

    Thanks in advance for any help and/or suggestions.

  • You can set the compiler options in your pro file. You can see the options enabled in the project tab of your project

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.