View previous topic :: View next topic |
Author |
Message |
RobotGymnast
Joined: 06 Jan 2011 Posts: 23
|
Posted: Thu Jan 20, 2011 2:38 pm Post subject: How to avoid command prompt popup? |
|
|
I'm using Derelict to build an SDL app, but how do I stop the command prompt box from popping up along with the new window? |
|
Back to top |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Sat Jan 22, 2011 7:36 am Post subject: |
|
|
I assume you're using Windows, in that case you can add this flag: -L/SUBSYSTEM:windows:5 . If you're using dsss/rebuild there's a -gui flag that will do the same. |
|
Back to top |
|
|
RobotGymnast
Joined: 06 Jan 2011 Posts: 23
|
Posted: Sat Jan 22, 2011 9:16 am Post subject: |
|
|
I'd much prefer a completely platform-independent way of doing so. I'm not using dsss nor rebuild, but simply make. |
|
Back to top |
|
|
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Sat Jan 22, 2011 9:37 am Post subject: |
|
|
Well, as far as I know this is only a problem on Windows. It won't happen on other platforms. On Mac OS X derelict automatically sets up a menu and dock icon if necessary. |
|
Back to top |
|
|
RobotGymnast
Joined: 06 Jan 2011 Posts: 23
|
Posted: Sat Jan 22, 2011 9:39 am Post subject: |
|
|
Really? I swear I've had this happen on my Gentoo box, but I may be remembering wrong.. it's been a while.
But won't the -L"-Subsystem:Windows" mess up other build regardless? |
|
Back to top |
|
|
Stanley Pancakes
Joined: 26 Dec 2009 Posts: 18
|
Posted: Mon Jan 24, 2011 3:56 pm Post subject: |
|
|
It will, because this is only needed for optlink, ld won't forgive you. In any case, you cannot do completely platform-independent things with make, alas. That's why they invented cmake and lots of other build systems. |
|
Back to top |
|
|
|