How to set debug mode only in QtCreator?
-
23-02-2021 - |
Pergunta
When Qt builds my project, it tries to do it both in the debug and release modes. However, I'm using an external library which I only have in debug mode. I'd like then to prevent QtCreator from building my project in the release mode so I won't have problems with the linker (I'm having problems with redefinitions when using "mixed-mode" libraries)
Solução
Go to project->Build Configurations and next to the pulldown menu with "Debug" and "Release" press "remove" when you have the "Release" configuration selected.
Why not just not select Release, and just build in Debug mode?
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow