zydis icon indicating copy to clipboard operation
zydis copied to clipboard

Amalgamated build should auto-define `ZYDIS_STATIC_BUILD`

Open ajmandourah opened this issue 11 months ago • 5 comments

Hey, i am new to cpp and i tried using the amalgamated files but I am getting a bunch of errors when compiling my dll

 warning C4273: 'ZydisDisassembleATT': inconsistent dll link
age
.
.
.
error C2491: 'ZydisEncoderEncodeInstruction': definition of
dllimport function not allowed

i have Zydis.c and Zydis.h in the src folder and I am including it as any file. I am also using cmake as follow.

cmake_minimum_required(VERSION 3.10.2)

set(CMAKE_CXX_STANDARD 20)

project(test)

include_directories(./src)
file(GLOB SRC_LIST ./src/*.cpp ./src/*.def ./src/*.c)
add_library(test SHARED ${SRC_LIST})

I tried looking arond hoping for guidance . Thanks

ajmandourah avatar Mar 24 '24 21:03 ajmandourah