PDA

View Full Version : Help with this library



davinciomare
23rd September 2016, 23:21
Please how i can include this library:

MSVCRT.lib(crtexe.obj):-1: error: LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
Thanks in advance.

ChrisW67
23rd September 2016, 23:30
Your sources should include a definition of a function main().

davinciomare
23rd September 2016, 23:42
i included main function:
int main(int argc, char *argv[])
{

QApplication a(argc, argv);
MainWindow w;
return a.exec();
}

ChrisW67
25th September 2016, 22:23
...and what happened next?