Re: Extra console window when cross-compiling

Igor Korot <[email protected]> Sat, 15 Nov 2025 22:42:45 -0800
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <CA+FnnTyJpAGJy4XAyCNkn9c73-visH8h2pNjxHG3v3Q=goJkpw@mail.gmail.com>
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/CA%2BFnnTyJpAGJy4XAyCNkn9c73-visH8h2pNjxHG3v3Q%3DgoJkpw%40mail.gmail.com.