Visual Studio: how to create a project that would compile 2 exe files?

后端 未结 6 1889
无人共我
无人共我 2020-12-16 10:20

So I have main.cpp and main2.cpp with int main in each. I want to get 2 exes out of it. Is it possible and what would be instruction to create such project?

6条回答
  •  再見小時候
    2020-12-16 10:57

    You can't have more than one main() function in a single visual studio project. So you can't compile 2 executables, the only way is to make two different project in the same solution

提交回复
热议问题