_DllMain @ 12 is already defined

I am trying to create an ExplorerPlugin subproject from the mDNSResponder-107.6.tar.gz archive, but get the following link error:

uafxcwd.lib (dllmodul.obj): LNK2005 error: _DllMain @ 12 is already defined

how to solve it?

+3
source share
2 answers

It looks like you are using MFC. It already has the DllMain access point needed to properly initialize the MFC. Check out the KB article for recommended workarounds. It is difficult to provide a better answer otherwise, you have not provided a link, and it seems to me that this is Apple code, very non-mfc-ish.

+3
source

, : fooobar.com/questions/221026/...

.cpp , DLLMain

extern "C" { int _afxForceUSRDLL; } 
+7

Source: https://habr.com/ru/post/1782289/


All Articles