Page 1 of 1

running an executable outside codelite

Posted: Fri Jan 24, 2014 8:14 am
by 91458
I am running Codelite version 5.4 on a Windows 7 64-bit home premium version of windows. Since this was a precompiled package, I am using the version of g++ which came with the package.

I have tried to run an executable of essentially "Hello World" outside of Codelite. I see a command window quickly pop up then disappear. I cannot read anything since the window opens and closes so rapidly. And yes, the program runs correctly inside codelite.

I assume when I hit run inside codelite that a program inside codelite executes calling a command window that the program I compiled runs inside. Upon exit, the same program asks for entry of a character to close the window.

If the latter is true, how can I add this to run a program inside Windows without codelite? Or am I missing something fundamental (I am a newbie to C++ programming) and just need to continue reading the "teach yourself C++" book a bit deeper?

Thanks...

Re: running an executable outside codelite

Posted: Fri Jan 24, 2014 10:19 am
by eranif
By default, all console programs within codelite are executed using a small wrapper named "le_exec.exe" which pause when the program terminated.
You can add such functionality yourself, by simply adding a call to 'getch()' or something similar

Eran