Page 1 of 1

Can I Compile and debug (run) single c++ file.

Posted: Tue Mar 25, 2014 6:51 pm
by asrat
Hello,
I'm learning C++ out of a book and using CodeLite.
In order to follow the book's exercises, I need to make multiple .cpp files with the main() function inside them.(Inside individual Cpp file).
Is there any way I can compile/debug my programs without making a new project every single time?

Or

if I could just have everything inside a single project where I could compile whichever individual file I wanted and see it run.


Regards

Re: Can I Compile and debug (run) single c++ file.

Posted: Tue Mar 25, 2014 8:06 pm
by eranif
You can define external tool that compiles the currently active editor.
Search the forum for this.


A good place to start is from the menu: plugins -> extrenal tools

Eran

Re: Can I Compile and debug (run) single c++ file.

Posted: Wed Mar 26, 2014 6:47 pm
by asrat
Hi,

Can you please explain this.

Thanks

Re: Can I Compile and debug (run) single c++ file.

Posted: Fri Mar 28, 2014 10:19 am
by eranif
Did you searching the forums?
Searching for " external tools" gives among other this result:

http://forums.codelite.org/viewtopic.ph ... tool#p5694

Eran