Code::Blocks Forums

User forums => Help => Topic started by: trilce on February 27, 2009, 07:28:33 pm

Title: Command Prompt under GUI application
Post by: trilce on February 27, 2009, 07:28:33 pm
Hello everyone.

I have some time using Code::Blocks in Linux, and I really like it a lot. But when I went to windows to compile a GTK+ program, It ran with a command prompt under it. I went to project options and selected GUI application but I am still having the same problem. If someone could help it would be appreciated.

Eduardo Sorribas
Title: Re: Command Prompt under GUI application
Post by: trilce on March 02, 2009, 06:49:05 am
There has to be a way.
Title: Re: Command Prompt under GUI application
Post by: Jenna on March 02, 2009, 07:38:30 am
Which compiler do you use?

If it's gcc, there should be a -mwindows in linker command.

It's added automatically by C::B for gui-applications, unless you change the compiler commands in the advanced compiler settings.
Title: Re: Command Prompt under GUI application
Post by: trilce on March 03, 2009, 04:27:18 am
Yes it is gcc, and i tried adding the -mwindows option on the build options but it did not work. Any other ideas??
Title: Re: Command Prompt under GUI application
Post by: Jenna on March 03, 2009, 07:31:54 am
Yes it is gcc, and i tried adding the -mwindows option on the build options but it did not work. Any other ideas??

Change "Settings -> Compiler and debugger... -> Global compiler settings -> [the compiler you use] -> Other settings(rightmost tab)" "Compiler logging" to "Full commandline" and post the content of the build log.