Re: Extra console window when cross-compiling

Сергей Коныгин <[email protected]> Sun, 16 Nov 2025 21:08:40 -0800 (PST)
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
 Using -mwindows solved the problem. 

воскресенье, 16 ноября 2025 г. в 11:09:41 UTC+4, Сергей Коныгин: 

> Thanks!
>
> Please clarify, should this option be added when compiling my application, 
> wxWidgets or both? 
>
> воскресенье, 16 ноября 2025 г. в 10:43:00 UTC+4, Igor Korot: 
>
>> Hi,
>>
>>
>> On Sat, Nov 15, 2025 at 10:36 PM Сергей Коныгин <[email protected]> 
>> wrote:
>>
>>> Hi!
>>>
>>> I'm trying to use a cross-compiler i686-w64-mingw32 to build my Windows 
>>> project (Debian 12, wxWidgets 3.3.1). But there was a some problem.
>>> When you start the program, an additional console window appears. When 
>>> compiling under Windows, everything is fine. There is only the main 
>>> program window. 
>>> Is this related to the cross-compiler itself or am I configuring 
>>> wxWidgets incorrectly?
>>>
>>
>> When building you code append “-windows” option.
>>
>> Thank you.
>>
>>
>>> -- 
>>> Please read https://www.wxwidgets.org/support/mlhowto.htm before 
>>> posting.
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "wx-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> To view this discussion visit 
>>> https://groups.google.com/d/msgid/wx-users/a4b2e4a0-cf2d-4b9b-8b93-3de1a68c70cbn%40googlegroups.com 
>>> <https://groups.google.com/d/msgid/wx-users/a4b2e4a0-cf2d-4b9b-8b93-3de1a68c70cbn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
--- 
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/wx-users/537a2d18-bbf1-4344-8620-99339fc2cf76n%40googlegroups.com.