[SOLVED] remove console from gui application

CodeLite installation/troubleshooting forum
lil Will
CodeLite Curious
Posts: 2
Joined: Sat Nov 07, 2015 9:19 am
Genuine User: Yes
IDE Question: C++
Contact:

[SOLVED] remove console from gui application

Post by lil Will »

hi, im fiddling around with glfw using codelite, and when i click the checkbox "this is a gui application" it doesnt remove the console as intended, are there other things i have to enable/disable to get rid of it, or is it a bug?

here is a screenshot to show it is checked, and there is indeed a console window:
Image
Last edited by lil Will on Sat Nov 07, 2015 11:50 am, edited 1 time in total.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: remove console from gui application

Post by eranif »

The settings are you looking at are for removing the console that CodeLite wraps your executable before launching it (it is useful when writing a console application and you want CodeLite to "Stop the program before it terminates" so you can read the console output)

What you are trying to achieve is actually a link flag on Windows.

Project Settings->Linker->Linker Options and append this:

Code: Select all

;-mwindows
(note the semi colon before the -mwindows)

Eran
Make sure you have read the HOW TO POST thread
lil Will
CodeLite Curious
Posts: 2
Joined: Sat Nov 07, 2015 9:19 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: remove console from gui application

Post by lil Will »

eranif wrote: What you are trying to achieve is actually a link flag on Windows.

Project Settings->Linker->Linker Options and append this:

Code: Select all

;-mwindows
(note the semi colon before the -mwindows)

Eran
worked like a charm, thanks
Post Reply