Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » How do I get rid of the console window?

This thread is locked; no one can reply to it. rss feed Print
How do I get rid of the console window?
Funklord
Member #467
June 2000
avatar

When I compile an Allegro windowed program with MingW32 and run, it first open a console window which says "1" then another which displays the program graphics.
How do I get rid of that console window?

----------------------
[ Me payge | Me shoutcast (128k) | Me in aktOin! | Me OS | Me friends ]

Age is inversely proportional to how much drink you've had - Funklord

Evert
Member #794
November 2000
avatar

Add -Wl,--subsystem,windows to the linker command line and you won't get unwanted console windows anymore.

Oz
Member #559
July 2000

whats wrong with -mwindows?

Evert
Member #794
November 2000
avatar

I've been told that -mwindows is outdated and may be removed in a future version of gcc and the -Wl,--subsystem,windows is now the prefered method.
Other than that, ther is nothing wrong with it.

Go to: