[Insight-users] Annoying console window for Qt + ITK + CMake
Pavan Podila
pavan.podila at gmail.com
Wed Jan 19 14:44:22 EST 2005
Hi Julien,
I tried that but VS.NET is giving the following error:
QtITK error LNK2019: unresolved external symbol _WinMain at 16 referenced
in function _WinMainCRTStartup
I wonder how it works through qmake.
Help needed again.
Julien Jomier wrote:
> Hi Pavan,
>
> Try to add this line to your CMakeLists.txt:
>
> SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}
> /subsystem:windows")
>
> Hope that helps,
>
> Julien
>
> Pavan Podila wrote:
>
>> HI,
>> Recently I have switched from qmake to CMake. I was successful in
>> compiling and running my application. However I get this annoying
>> console window which I want to get rid of somehow. I tried the Win32
>> flag in ADD_EXECUTABLE() but then the VS.NET complains about not
>> finding the WinMain().
>> Earlier with qmake I never had this problem. Is there a way to
>> hide this console window. We will be deploying this application on
>> the client-side, so its important that we get rid of the console
>> window. I strongly want to use CMake instead of qmake.
>>
>> Kindly help,
>> Pavan
>> _______________________________________________
>> Insight-users mailing list
>> Insight-users at itk.org
>> http://www.itk.org/mailman/listinfo/insight-users
>>
>>
>
>
More information about the Insight-users
mailing list