VS2015 compile bug: unresolved external symbol WinMain

Error Info in my  project:

Error    LNK2019    unresolved external symbol WinMain referenced in function "int __cdecl __scrt_common_main_seh(void)" (?__scrt_common_main_seh@@YAHXZ)    OpenGL06  

Directory\MSVCRT.lib(exe_winmain.obj)    1    

 

解决方法:

1. 右击工程, 选择properties, 做如下修改.

VS2015 compile bug: unresolved external symbol WinMain_第1张图片
 

参考:

http://www.cplusplus.com/forum/general/189840/

你可能感兴趣的:(VS2015 compile bug: unresolved external symbol WinMain)