vs2015 error: LNK2001: unresolved external symbol _WinMainCRTStartup


I'm a beginner of C++. I program in Qt 5.9.1 with VS2015. My program has two error:

1) LNK2001: unresolved external symbol _WinMainCRTStartup
2) LNK1120: 1 unresolved externals

In fact, this program works correctly for my teammate who also use vs2015 and Qt 5.9.1 but it doesn't work for my computer. It seems that I made some mistakes when I install Vs2015.

To solve these errors, I add this in my program:

INCLUDEPATH += "C:\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt"

to include the windows kit, it solves the error, but unfortunately, this is not the proper way because my teammate don't need to add this instruction. So my question is what should I do to run a C++ project correctly without include this windows kits? Thank you very much.

Is there a difference in your operating systems or the compiler edition?
Registered users can post here. Sign in or register to post.