Home > Software engineering >  Error LNK2005: _DllMain @ 12 in dllmain. Obj is defined
Error LNK2005: _DllMain @ 12 in dllmain. Obj is defined

Time:02-20

This mistake how to solve???

In a search on the net the same post, say
"_DllMain this has in the solution of dllmain. CPP has been defined, deletes"

But I dllmain. CPP no _DllMain inside!!!!!!

O bosses give directions

CodePudding user response:

Is anyone here

CodePudding user response:

Find a solution, come and eat points


# ifdef _X86_
Extern "C" {int _afxForceUSRDLL; }
# the else
Extern "C" {int __afxForceUSRDLL; }
# endif
Played the enforce this code you custom dllmain function role,,

CodePudding user response:

  • Related