FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to avoid command prompt popup?

 
Post new topic   Reply to topic     Forum Index -> Derelict
View previous topic :: View next topic  
Author Message
RobotGymnast



Joined: 06 Jan 2011
Posts: 23

PostPosted: Thu Jan 20, 2011 2:38 pm    Post subject: How to avoid command prompt popup? Reply with quote

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
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Sat Jan 22, 2011 7:36 am    Post subject: Reply with quote

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
View user's profile Send private message
RobotGymnast



Joined: 06 Jan 2011
Posts: 23

PostPosted: Sat Jan 22, 2011 9:16 am    Post subject: Reply with quote

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
View user's profile Send private message
doob



Joined: 06 Jan 2007
Posts: 367

PostPosted: Sat Jan 22, 2011 9:37 am    Post subject: Reply with quote

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
View user's profile Send private message
RobotGymnast



Joined: 06 Jan 2011
Posts: 23

PostPosted: Sat Jan 22, 2011 9:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Stanley Pancakes



Joined: 26 Dec 2009
Posts: 18

PostPosted: Mon Jan 24, 2011 3:56 pm    Post subject: Reply with quote

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. Sad That's why they invented cmake and lots of other build systems.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Derelict All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group