在工程上右键-》属性-》c/c++-》代码生成-》运行库 改成(release为MT,debug为MTD)即可解决: 转载于:https://www.cnblogs.com/begoogatprogram/p/6647122.html