I tried to compile the program with cmake, and I deleted my file main.cpp, which I just put into another file that indicated the name of my project (i.e. I just cut and pasted the main function into this one). The problem is that I received an main.cpperror not found and was not sure if there is a C++file known as main.cpp, or can I get a file with a different header that contains the main function instead?
Edit
I should note that I deleted any specification in mainand recompiled this program.
source
share