Hi, in QT, whenever I create any C++ project, it contains a main.cpp file by default. If I run it, it works fine. However, when I try to add another C++ file to the project with its corresponding main function, and after selecting that file name in the explore pane I click the Run button, it shows a build error.
I understand that in a project, there is supposed to be one main file with the main function in it while the others are invoked internally. However, for this project, I want to run individual files separately. How do I do it?
Bookmarks