Failed to build after 8bf93ca update the libyara\lib\libyara64.lib and libyara\lib\libyara86.lib file.
Error Info
Build FAILED.
"T:\t\capemon\capemon.sln" (Rebuild target) (1) ->
"T:\t\capemon\capemon.vcxproj.metaproj" (Rebuild target) (2) ->
"T:\t\capemon\capemon.vcxproj" (Rebuild target) (5) ->
(Link target) ->
LINK : fatal error C1047: The object or library file 'T:\t\capemon\\libyara\lib\libyara64.lib' was created by a different version of the compiler than other objects like 'x64\Release\alloc.obj'; rebu
ild all objects and libraries with the same compiler [T:\t\capemon\capemon.vcxproj]
LINK : fatal error LNK1257: code generation failed [T:\t\capemon\capemon.vcxproj]
2 Error(s)
git clone https://github.com/kevoreilly/capemon.git
cd capemon
REM It can be compiled after restoring libyara lib
REM git checkout 8bf93ca~ libyara\lib\libyara*.lib
msbuild /m /p:Platform=x64 /p:Configuration=Release /p:WindowsTargetPlatformVersion=10.0.22621.0 /p:PlatformToolset=v143 capemon.sln /t:Rebuild
Build Env
Commit: capemon(56886e6)
VS: 2022 17.7.3
System: Microsoft Windows [Version 10.0.22621.2134]
I see from Build Command that you are using PlatformToolset vc143,capemon's vs project uses vc141_xp, you need to additionally install vc141_xp or vc_141 toolset
Failed to build after 8bf93ca update the
libyara\lib\libyara64.lib
andlibyara\lib\libyara86.lib
file.Error Info
Reproduce Command
Build Command
Build Env