when I compile my project, I get the following error.
error:Multiple definition of main() what is the problem?
Here is the code:
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
myserver server;
server.startserver();
return a.exec();
}