error LNK2005: _DllMain@12 already defined in MSVCRT.lib

前端 未结 17 2076
臣服心动
臣服心动 2020-12-14 06:44

I am getting this linker error.

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

17条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-14 07:12

    For me the direct cause was indeed a missing _afxForceUSRDLL symbol reference, but the indirect cause was a missing _USRDLL macro definition. It is defined by default by the VC wizard, but occasionally devs erase it erroneously. Here it is in more words.

提交回复
热议问题