user3243499
user3243499

Reputation: 3161

How to build and run multiple main cpp files in CodeLite IDE that are in different Projects or within same projects?

I have a simple codelite project structure as follows:

enter image description here

All of the three main.cpp files are independent. I just want to keep it that way as I am not building a typical c++ project rather, I want to use CodeLite to compile, run and test one cpp file to solve some algorithmic puzzles online.

However, when I run p2/src/main.cpp, p1/src/main.cpp runs, and when I do the same with p3/src/main.cpp, p1/src/main.cpp runs again.

Basically, I am not able to build and run other codes except p1/src/main.cpp.

Upvotes: 2

Views: 2307

Answers (1)

Related Questions