Today I have tried to make a dll project. I am sure that before closing up the MFC windows, no linking errors. With nothing changed, I open the workspace again and I have got these linking errors:
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
Creating library Debug/xxx.lib and object Debug/xxx.exp
Debug/xxx.dll : fatal error LNK1169: one or more multiply defined symbols found
Error executing link.exe.
I don't know what wrong I did. Have you encountered such questions before? Any suggestion?