Definition of dllimport function not allowed
whenever i try to build i get these errors

You need to #define SUBHOOK_STATIC if you are using it as a static library or embedding in your project
@Zeex i still get these errors

bump. SUBHOOK_STATIC is defined before include statement i also get these errors
Hello all. For anyone in the future who make encounter this error I have a fairly simple solution. As you've likely read above, and in the documentation, running subhook on windows requires you to have SUBHOOK_STATIC defined before including subhook.h. However, like the others above, even doing so would still result in this error.
The solution to this issue, is to simply add SUBHOOK_STATIC to the preprocessor definitions. Project properties -> C/C++ -> Preprocessor -> Preprocessor Definitions