|
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
|
Compile with -mwindows flag "Code is like shit - it only smells if it is not yours" |
Edgar Reynaldo
Major Reynaldo
May 2007
|
It's MSVC Gully. Change your project to be a gui application. Theres a linker setting for that. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
Andrew Gillett
Member #15,868
January 2015
|
Found in Linker->System->Subsystem - changed to Windows |
GullRaDriel
Member #3,861
September 2003
|
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" |
GullRaDriel
Member #3,861
September 2003
|
My bad, MSVC and NuGet... "Code is like shit - it only smells if it is not yours" |
|