Pelles C forum

C language => Beginner questions => Topic started by: hypersimus on June 14, 2010, 07:57:59 AM

Title: turn off console window when running application
Post by: hypersimus on June 14, 2010, 07:57:59 AM
hi,
i just tested running IUP toolkit with pelles c,
this source compiled and link successfully.

but problem is, whenever i double click to run this application, it would shows a command prompt window at the back, with the IUP window in front.

is there somehow somewhere there is a switch to turn off this feature? (like in freebasic, * found while searching for solution)

Quote
http://www.freebasic.net/forum/viewtopic.php?p=123099
The compiler option -s gui ensures no console window is created when
a program using iup is executed.
Title: Re: turn off console window when running application
Post by: hypersimus on June 14, 2010, 08:06:47 AM
this is how they do it under MinGW

http://www.allegro.cc/forums/print-thread/594895

how about pelles c?
Title: Re: turn off console window when running application
Post by: TimoVJL on June 14, 2010, 08:11:22 AM
linker option -subsystem:windows
Title: Re: turn off console window when running application
Post by: hypersimus on June 14, 2010, 08:17:26 AM
oh,
thanks timovjl

setting -subsystem:windows and then entry point set to "main" works, just figured out. :) it works smooth now.