I already searched for solutions online, but nothing helped me. I want to code a simple Chat in C++, everything is fine, but I get this error:
error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
I already defined
#define _AFXDLL
but the error is still occures. Any help is apprecicated!
There are two settings that must agree with each other:
If (1) is set to
Use MFC in static library
, then (2) must beMultithreaded (/MT)
orMultithreaded Debug (/MTd)
(in Release and Debug builds, correspondingly). If (1) isUse MFC in Shared DLL
, then (2) must beMulti-threaded DLL (/MD)
orMulti-threaded Debug DLL (/MDd)
.When the two don't agree, you get the error you've shown.