mfcs90d.lib(xxx.obj):error LNK2005:_DllMain@12 already defined in MSVCRTD.lib(xxx.obj)

问题:mfcs90d.lib(xxx.obj)  :  error LNK2005: DllMain@12 already defined in MSVCRTD.lib(xxx.obj)
原因:mfcs90d.lib和MSVCRTD.lib的链接顺序不正确。

解决方法:项目属性->配置属性->连接器->输入

              1.在忽略特定库里加入 mfcs90d.lib;MSVCRTD.lib

              2.在附加依赖库项里加入 mfcs90d.lib MSVCRTD.lib

              3.OK

原文地址:https://www.cnblogs.com/wxxweb/p/2319662.html