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

Author Topic: Disabling console in NetBeans under Windows  (Read 2260 times)

0 Members and 1 Guest are viewing this topic.

Glibnes

  • Newbie
  • *
  • Posts: 2
    • View Profile
Disabling console in NetBeans under Windows
« on: May 29, 2013, 10:15:10 pm »
Hi,

I'm writing a small app in SFML under Windows and I'm wondering, how to disable console window in NetBeans. I've found some forum posts about disabling it in Code::Blocks and VS, but I couldn't find (and find any solution on my own) anything about NetBeans.

Is there any solution for my problem?

kralo9

  • Newbie
  • *
  • Posts: 44
    • View Profile
    • Email
Re: Disabling console in NetBeans under Windows
« Reply #1 on: May 30, 2013, 08:15:42 am »
If you have Windows try adding this
#pragma comment(linker, "/subsystem:windows /ENTRY:mainCRTStartup")
I'm totally exhausted. I've got 3 children and no money! Why can't I have no children and 3 money? - Homer S.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Disabling console in NetBeans under Windows
« Reply #2 on: May 30, 2013, 08:29:00 am »
These are VC++ options.

Adding the "-mwindows" (linker?) flag should do the job for gcc.
Laurent Gomila - SFML developer

Glibnes

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Disabling console in NetBeans under Windows
« Reply #3 on: May 30, 2013, 09:49:22 am »
Thank you Laurent, that flag did the job :)

Maybe you could add this info somewhere in the Tutorial for other people?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Disabling console in NetBeans under Windows
« Reply #4 on: May 30, 2013, 10:19:05 am »
I have no tutorial for NetBeans. And anyway, this is not specific to SFML, it's not my job to explain this kind of stuff.
Laurent Gomila - SFML developer