I
I
Ivan Ivanov2014-01-27 19:17:30
C++ / C#
Ivan Ivanov, 2014-01-27 19:17:30

How to run .cpp in VS separately?

For example, I am writing a task in one tab and I need to check one way, but without affecting the main one, I create a new element and when I press Ctrl + F5 to run and check it starts compiling all elements.
xqw1ri13ncby.jpg
Question: how to launch only individual elements?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
AlexP11223, 2014-01-27
@Csklassami

In any way probably, it is impossible to have more than 1 main'a in one project. You can comment out main in one and write in another. Or create a new project with these files (the files are not even copied to the new project when adding existing ones to it).

T
Trrrrr, 2014-01-27
@Trrrrr

you can make excluded from build to one cpu and create different versions of the build.
Or use conditional compilation #if defined(MAIN1) .... #endif

K
Kyberman, 2014-01-27
@Kyberman

You can create several projects in one solution and compile only the required project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question