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...
running an executable outside codelite
-
- CodeLite Enthusiast
- Posts: 13
- Joined: Thu Dec 12, 2013 9:25 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: running an executable outside codelite
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
You can add such functionality yourself, by simply adding a call to 'getch()' or something similar
Eran
Make sure you have read the HOW TO POST thread