User forums > Help
Command Prompt under GUI application
(1/1)
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:
There has to be a way.
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??
--- End quote ---
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.
Navigation
[0] Message Index
Go to full version