增加如下语句: #pragma comment(linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"") 转载于:https://www.cnblogs.com/verstin/p/6759410.html