Allegro.cc - Online Community

Allegro.cc Forums » Installation, Setup & Configuration » How to get rid of console window

Credits go to Edgar Reynaldo for helping out!
This thread is locked; no one can reply to it. rss feed Print
How to get rid of console window
Andrew Gillett
Member #15,868
January 2015

I have come back to an old project after several years, and have updated to the latest Allegro 5. I'm using the NuGet package in MSVC, having been unable get a build from source working as CMake couldn't find FreeType.

When I run my program, I first get a console window, then the Allegro window appears. How can I get rid of the console window?

GullRaDriel
Member #3,861
September 2003
avatar

Compile with -mwindows flag

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Andrew Gillett
Member #15,868
January 2015

Found in Linker->System->Subsystem - changed to Windows

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

GullRaDriel
Member #3,861
September 2003
avatar

And what does the setting in the UI do ?

Edit: I mean what is the resulting g++ flag ?

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

GullRaDriel
Member #3,861
September 2003
avatar

My bad, MSVC and NuGet...

"Code is like shit - it only smells if it is not yours"
Allegro Wiki, full of examples and articles !!

Go to: