jmpews / Dobby

a lightweight, multi-platform, multi-architecture hook framework.
Apache License 2.0
3.89k stars 796 forks source link

Compile dobby on windows failed. #165

Open zhaowq32 opened 2 years ago

zhaowq32 commented 2 years ago
Dobby\.\external\misc-helper/unistd_helper.h(19,27): error : typedef redefinition with different types ('char' vs 'signed char')
zhaowq32 commented 2 years ago
cmake -G 'Visual Studio 16 2019' -T ClangCL -AWin32 -DDOBBY_GENERATE_SHARED=OFF -DCMAKE_INSTALL_PREFIX=/Dobby/build/dest ..

Selecting Windows SDK version 10.0.20348.0 to target Windows 10.0.19042.

zhaowq32 commented 2 years ago

Commenting out the following lines in the unistd_helper.h file solved the problem

typedef __int8            int8_t;