SFML community forums

Help => General => Topic started by: JDMaverick on August 02, 2012, 08:18:54 am

Title: How to remove the console on the background when deploying game?
Post by: JDMaverick on August 02, 2012, 08:18:54 am
Hi All,

I'm new to game development but not in programming; just wanted to know how do you exclude the command prompt when you deploy your project for release?

Thank you very much,

JDMaverick
Title: Re: How to remove the console on the background when deploying game?
Post by: eXpl0it3r on August 02, 2012, 09:25:47 am
By using the forum search function? ;)

Link against sfml-main.lib and change the subsystem project setting to window.
Title: Re: How to remove the console on the background when deploying game?
Post by: Vot1_Bear on January 09, 2013, 04:20:13 pm
By using the forum search function? ;)

Link against sfml-main.lib and change the subsystem project setting to window.
Apologies for bumping this somewhat-old thread, but can you please help specify what you meant by "Link against sfml-main.lib"?

I tried using the search function but the ones i can only find is a solution for Code::Blocks user, while I'm using VC2010.
Trying to change the linker properties from console -> window creates an error and not even changing 'main' to 'WinMain' fixes it (creates bugs i'm not sure how to fix). Help please?
Additional note: Currently the command FreeConsole() from windows.h works but there is still a splitsecond in which the console is visible. If possible i'd like it to not show up at all

Thanks and sorry again for the bump :)

E: I could provide the debug output if needed, but it would require me to recreate the scenario again which might take a lot of work, so I'm not including if possible. Sorry if this is an inconvenience
Title: Re: How to remove the console on the background when deploying game?
Post by: Laurent on January 09, 2013, 04:26:27 pm
Quote
can you please help specify what you meant by "Link against sfml-main.lib"
Linker > Input > Additional dependencies. The place where you added other SFML libraries (sfml-system, sfml-window, ...) ;)
Title: Re: How to remove the console on the background when deploying game?
Post by: Vot1_Bear on January 10, 2013, 05:30:03 pm
Quote
can you please help specify what you meant by "Link against sfml-main.lib"
Linker > Input > Additional dependencies. The place where you added other SFML libraries (sfml-system, sfml-window, ...) ;)
I see, can't believe I missed that :P
Compiling it as Window app is fixed now, thanks a lot.