qmake is putting both /SUBSYSTEM:CONSOLE
and /SUBSYSTEM:WINDOWS
on the linker command line. This is in spite of having CONFIG += windows
and CONFIG -= console
present in the project file. This is with Qt 5.1.1, app
template, otherwise default settings. The mkscpec is win32-msvc2012. I'm using the widgets
and testlib
subsystems.
How do I get rid of the CONSOLE
subsystem?
In Qt 5 using testlib
module adds a console
option via the MODULE_CONFIG
mechanism. This forces a /SUBSYSTEM: CONSOLE
onto the linker command line no matter what global options you specify, even if you use CONFIG -= console
.
The console
configuration is given in the testlib module configuration within qtbase/src/testlib/testlib.pro
. This means that it ends up in QT.testlib.CONFIG
variable.
It's easily removable if you want to use testlib
without forcing the console subsystem. In your project file, add
QT.testlib.CONFIG -= console
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With