Hide console window

General questions regarding the usage of CodeLite
Ssawa
CodeLite Curious
Posts: 2
Joined: Sat Jan 05, 2013 10:53 pm
Genuine User: Yes
IDE Question: c++
Contact:

Hide console window

Post by Ssawa » Sat Jan 05, 2013 10:58 pm

Hey, I'm making the leap from code::blocks to codelite and have gotten hung up on one little thing. I've made a g++ console project and have a little SFML code running and I'm curious if there is a way to hide the console from coming up when I run the project. In codeblocks I believe there was a drop down menu where you could select "gui" as opposed to "console" if you wanted it to run without the console for a release build for example and I'm curious if there's anything similar in codelite.

User avatar
eranif
CodeLite Plugin
Posts: 6089
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Hide console window

Post by eranif » Sat Jan 05, 2013 11:24 pm

right click on your project and select settings -> common settings -> linker

and in the 'Options' field add (the semi colon is needed in case you have other options on that field):

Code: Select all

;-mwindows
Eran
Make sure you have read the HOW TO POST thread

Ssawa
CodeLite Curious
Posts: 2
Joined: Sat Jan 05, 2013 10:53 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Hide console window

Post by Ssawa » Sun Jan 06, 2013 1:11 am

Thank you so much for the help, I really appreciate it :)

Post Reply