Author Topic: Command Prompt under GUI application  (Read 2576 times)

Offline trilce

  • Single posting newcomer
  • *
  • Posts: 3
Command Prompt under GUI application
« 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

Offline trilce

  • Single posting newcomer
  • *
  • Posts: 3
Re: Command Prompt under GUI application
« Reply #1 on: March 02, 2009, 06:49:05 am »
There has to be a way.

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Command Prompt under GUI application
« Reply #2 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.

Offline trilce

  • Single posting newcomer
  • *
  • Posts: 3
Re: Command Prompt under GUI application
« Reply #3 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??

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Command Prompt under GUI application
« Reply #4 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.