Page 1 of 1

[SOLVED] remove console from gui application

Posted: Sat Nov 07, 2015 9:28 am
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

Re: remove console from gui application

Posted: Sat Nov 07, 2015 11:15 am
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

Re: remove console from gui application

Posted: Sat Nov 07, 2015 11:51 am
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