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

前端 未结 17 1923
臣服心动
臣服心动 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:19

    If you're defining your own DllMain, in your project settings you need to set 'Use of MFC' in the 'Configuration Properties/General' to 'Use Standard Windows Libraries'.

    You should do a clean rebuild after changing it.

提交回复
热议问题