[Interest] Windows application runs with console window
Igor Mironchik
igor.mironchik at gmail.com
Sun Sep 8 06:04:04 CEST 2013
Hi
> What a coincidence... Exactly today I found this on SO:
>
> http://stackoverflow.com/questions/18666799/how-to-prevent-qmake-from-adding-the-console-subsystem-on-the-linker-command-lin#comment27503243_18666799
I also came to this conclusion... But my question is also about the fact
that qmake adds definitions of macro and links to testlib in release
mode too, even if I write in pro file something like this:
CONFIG(debug) {
DEFINES += PROJECT_DEBUG
QT += testlib
}
But why? In release mode?
>
> On Sat, 07 Sep 2013 10:17:03 +0300
> Igor Mironchik <igor.mironchik at gmail.com> wrote:
>
>>> I write an application.
>>>
>>> The common definitions in the project file are:
>>>
>>> TEMPLATE= app
>>> TARGET= application
>>> DESTDIR= ..
>>> QT += core gui network sql widgets
>>> CONFIG+= windows
>>>
>>> But when I run application I see the console (command prompt) window
>>> within my application. Why?
>>>
>>> I use Qt 5.1.0,MSVC2012, Windows 7.
>>>
>> I have found the problem.
>>
>> In my project file there was such lines:
>>
>> debug {
>> DEFINE+=DEBUG
>> QT += testlib
>> }
>>
>> When I've removed that lines command prompt window disappear.
>>
>> I've tried to change that lines to:
>>
>> CONFIG(debug) {
>> DEFINE += DEBUG
>> QT += testlib
>> }
>>
>> But it doesn't help me. What is the problem? Thanks.
>>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
More information about the Interest
mailing list