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

前端 未结 17 2095
臣服心动
臣服心动 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 06:53

    I found solution Here Visual Studio 2010 library linking order

    this is: /FORCE:MULTIPLE in linker options

    I had to mix ATL and MFC together , to use [module(name = "mymodule")]; construction in MFC application together with "__hook" keyword

提交回复
热议问题