GTK+ Forums

Discussion forum for GTK+ and Programming. Ask questions, troubleshoot problems, view and post example code, or express your opinions.
It is currently Fri Jul 25, 2014 3:22 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Windows cmd issue with app
PostPosted: Wed Dec 28, 2011 5:19 pm 
Offline

Joined: Wed Dec 28, 2011 5:14 pm
Posts: 1
Hi All,

Just started doing a bit of GTK programming on C.

Whenever I run any GUI app on windows, even the most basic 'hello world' app there is always a black DOS window running in the background behind the GUI app.

Any ideas how to get rid of/ hide this??


Top
 Profile  
 
 Post subject: Re: Windows cmd issue with app
PostPosted: Mon Jan 02, 2012 11:29 pm 
Offline
Never Seen the Sunlight

Joined: Thu Mar 24, 2011 2:10 pm
Posts: 328
Location: Sydney, Australia
you need to add a certain flag when compiling (I think it is -Wl,-subsystem,windows though it may vary from compiler to compiler). Beware that this may cause you're program to crash if outputting to stdin, stdout or stderr.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group