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

General questions regarding the usage of CodeLite
asrat
CodeLite Enthusiast
Posts: 13
Joined: Sun Mar 23, 2014 8:37 am
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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
Make sure you have read the HOW TO POST thread
asrat
CodeLite Enthusiast
Posts: 13
Joined: Sun Mar 23, 2014 8:37 am
Genuine User: Yes
IDE Question: C++
Contact:

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

Post by asrat »

Hi,

Can you please explain this.

Thanks
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

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

Post 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
Make sure you have read the HOW TO POST thread
Post Reply