Extra console window when cross-compiling

24 views
Skip to first unread message

Сергей Коныгин

unread,
Nov 16, 2025, 1:36:16 AM (3 days ago) Nov 16
to wx-users
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?

Igor Korot

unread,
Nov 16, 2025, 1:43:00 AM (3 days ago) Nov 16
to wx-u...@googlegroups.com
Hi,


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 wx-users+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wx-users/a4b2e4a0-cf2d-4b9b-8b93-3de1a68c70cbn%40googlegroups.com.

Сергей Коныгин

unread,
Nov 16, 2025, 2:09:41 AM (3 days ago) Nov 16
to wx-users
Thanks!

Please clarify, should this option be added when compiling my application, wxWidgets or both?

воскресенье, 16 ноября 2025 г. в 10:43:00 UTC+4, Igor Korot:

Сергей Коныгин

unread,
Nov 17, 2025, 12:08:40 AM (2 days ago) Nov 17
to wx-users
Using -mwindows solved the problem.

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

Igor Korot

unread,
Nov 17, 2025, 12:47:28 AM (2 days ago) Nov 17
to wx-u...@googlegroups.com
Hi,

On Sat, Nov 15, 2025 at 11:09 PM Сергей Коныгин <steev...@gmail.com> wrote:
Thanks!

Please clarify, should this option be added when compiling my application, wxWidgets or both?

Your app should be enough.

Thank you.

Reply all
Reply to author
Forward
0 new messages