You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build the project as x64-windows-static-rel or x64-windows-static-dbg
The magic.lib that vcpkg will use contains DllMain because the variable BUILD_AS_WINDOWS_STATIC_LIBARAY is not set during the build of the libmagic package. source code of magic.c
Failure logs
Error LNK2005 DllMain already defined in MyProjectName.obj MyProjectName C:\MyProject\magic.lib(magic.obj) 1
Operating system
Windows
Compiler
MSVC
Steps to reproduce the behavior
x64-windows-static-relorx64-windows-static-dbgmagic.libthat vcpkg will use containsDllMainbecause the variableBUILD_AS_WINDOWS_STATIC_LIBARAYis not set during the build of thelibmagicpackage. source code of magic.cFailure logs
Additional context
No response