**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<