Closed RadonCoding closed 2 years ago
@RadonCoding Could you please try to set ZYDIS_STATIC_BUILD
in the compiler commandline flags? ZYCORE_STATIC_BUILD
might be required as well if you plan to use any of the Zycore exports (Zydis itself only uses Zycore header files).
The _imp_
prefix is used when the API is exported using declspec(dllexport)
. CMake takes care of not using it when ZYDIS_STATIC_BUILD
is defined. If your project does not define this macro as well, declspec(dllimport)
is used for an export that is not marked as declspec(dllexport)
and causes the linker error.
Sorry where do i set the compiler commandline flags?
You can use -D ZYDIS_STATIC_BUILD
in the command line or set it in the project options in Visual Studio like this:
Thanks for the fast response. That worked!
I built the repository using CMake and included it in my project. When trying to build i get the following errors
error LNK2001: unresolved external symbol __imp_ZydisDecoderInit
error LNK2001: unresolved external symbol __imp_ZydisDecoderDecodeFull
This is my directory setup:
Here are my project settings: