mfcs42d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj)

当遇到mfcs42d.lib(dllmodul.obj) : error LNK2005: _DllMain@12已经定义的错误时,解决方案包括在设置中忽略特定库的链接,并手动指定链接顺序。在WIN32 Debug下,忽略MSVCRTD.lib, mfcs42d.lib,然后在Object/Library Modules中添加这两个库,确保mfcs42d.lib在前,MSVCRTD.lib在后,重新编译即可解决问题。此方法适用于VC++6.0,VS.NET 2003则在Additional Dependencies中设置。" 122865795,11635798,EJS模板引擎:概念、原理与应用,"['javascript', '开发语言', 'ecmascript', '模板引擎', 'NodeJS']

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

**mfcs42d.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj)
mfcs42d.lib(dllmodul.obj) : warning LNK4006: _DllMain@12 already defined in MSVCRTD.lib(dllmain.obj); second definition ignored

解决办法:
The fix is very simple, just do the following.
1)Select BUILD|SETTINGS
2)In the left hand pane highlight WIN32 Debug
3)Go to the LINK tab
4)Select the INPUT ‘category’
5)in the edit box labeled 'Ignore Libraries’type the following two libs
MSVCRTD.lib, mfcs42d.lib (order doesn’t matter here)
6)Now in the edit box labeled ‘Object/Library Modules’ type the following two libs
mfcs42d.lib, MSVCRTD.lib
MAKE SURE THEY ARE IN THIS ORDER AND THEY ARE LISTED AS THE FIRST & SECOND LIBS IN THE EDIT BOX
7)rebuild and all should be fine. Basically what you did was tell the linker to skip the implied inclusion of these libs, and then manually told it to include them in the specific order mentioned<

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值