News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Command Prompt under GUI application

Started by trilce, February 27, 2009, 07:28:33 PM

Previous topic - Next topic

trilce

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

trilce


Jenna

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.

trilce

Yes it is gcc, and i tried adding the -mwindows option on the build options but it did not work. Any other ideas??

Jenna

Quote from: 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??

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.