Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How to remove the console on the background when deploying game?  (Read 3475 times)

0 Members and 1 Guest are viewing this topic.

JDMaverick

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
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

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: How to remove the console on the background when deploying game?
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Vot1_Bear

  • Newbie
  • *
  • Posts: 31
  • Noob in-training
    • View Profile
    • Game development blog
Re: How to remove the console on the background when deploying game?
« Reply #2 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
« Last Edit: January 09, 2013, 04:26:04 pm by Vot1_Bear »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: How to remove the console on the background when deploying game?
« Reply #3 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, ...) ;)
Laurent Gomila - SFML developer

Vot1_Bear

  • Newbie
  • *
  • Posts: 31
  • Noob in-training
    • View Profile
    • Game development blog
Re: How to remove the console on the background when deploying game?
« Reply #4 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.