Hit a bit of a snag while updating the build scripts. Now I’m getting this error in the Meson branch while the main branch builds without issue:
[1/199] "cl" "-IMWEdit.exe.p" "-I." "-I.." "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W4" "/EHsc" "/std:c++20" "/permissive-" "/O2" "/Gw" "/FdMWEdit.exe.p\Common_File_CfgFile.cpp.pdb" /FoMWEdit.exe.p/Common_File_CfgFile.cpp.obj "/c" ../Common/File/CfgFile.cpp
FAILED: [code=2] MWEdit.exe.p/Common_File_CfgFile.cpp.obj
"cl" "-IMWEdit.exe.p" "-I." "-I.." "/MD" "/nologo" "/showIncludes" "/utf-8" "/Zc:__cplusplus" "/W4" "/EHsc" "/std:c++20" "/permissive-" "/O2" "/Gw" "/FdMWEdit.exe.p\Common_File_CfgFile.cpp.pdb" /FoMWEdit.exe.p/Common_File_CfgFile.cpp.obj "/c" ../Common/File/CfgFile.cpp
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\ATLMFC\include\afx.h(24): fatal 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]
Any ideas what that error means and how to fix it? Also, why is it complaining now but didn’t before?
You can see the changes in the PR
I’m sure I’m missing something from the Meson script but not sure what
The other warnings you’ll see in the log have been on the list for months 🙂
So it looks like it’s a setting in the project files that needs to be set in the Meson script somehow, which explains why it’s coming up now.
Not sure how to set it in Meson, though. Can’t find much about it. May take it to their GitHub page tomorrow
Another question: what triggers it? Is it something that can simply be fixed in the code or is it inherent in the MFC stuff?
