www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - GUI app brings up console

reply Ivan Trombley <itrombley dot-borg.org> writes:
I created a cross-platform app using gtk-d. Everything works fine 
but when I run it from Windows, a console window is opened. How 
can I tell Windows that it's a GUI application so that a console 
is not opened (keeping in mind that this app also needs to be 
compiled on Linux and Mac)?
Dec 06 2017
parent reply MrSmith <mrsmith33 yandex.ru> writes:
On Wednesday, 6 December 2017 at 21:25:27 UTC, Ivan Trombley 
wrote:
 I created a cross-platform app using gtk-d. Everything works 
 fine but when I run it from Windows, a console window is 
 opened. How can I tell Windows that it's a GUI application so 
 that a console is not opened (keeping in mind that this app 
 also needs to be compiled on Linux and Mac)?
Assuming that you use dub, add this to your dub.json "lflags-windows" : ["/SUBSYSTEM:windows,6.00", "/ENTRY:mainCRTStartup"]
Dec 06 2017
parent Ivan Trombley <itrombley dot-borg.org> writes:
On Wednesday, 6 December 2017 at 21:35:43 UTC, MrSmith wrote:
 On Wednesday, 6 December 2017 at 21:25:27 UTC, Ivan Trombley 
 wrote:
 I created a cross-platform app using gtk-d. Everything works 
 fine but when I run it from Windows, a console window is 
 opened. How can I tell Windows that it's a GUI application so 
 that a console is not opened (keeping in mind that this app 
 also needs to be compiled on Linux and Mac)?
Assuming that you use dub, add this to your dub.json "lflags-windows" : ["/SUBSYSTEM:windows,6.00", "/ENTRY:mainCRTStartup"]
Awesome! TYVM.
Dec 06 2017