warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library error LNK2005

与静态库lib 的运行时不匹配(/MT /MD)

一般后面会报错error LNK2005 重复定义错误

在 项目——属性——配置属性——C/C++——代码生成 

原文地址:https://www.cnblogs.com/DirWang/p/15469683.html