The new Release 20.03 is out! You can download binaries for Windows and many major Linux distros here .
||Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"detours" ' unrecognized|||Warning: .drectve `/DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"uuid.lib" /DEFAULTLIB:"detours" ' unrecognized|C:\Users\Alford\Documents\c++\detour\detours.lib(detours.obj)||In function `DetourFunction@8':|8]+0x9)||undefined reference to `??2@YAPAXI@Z'|c:\code\detours\sr|10|undefined reference to `??3@YAXPAX@Z'|C:\Users\Alford\Documents\c++\detour\detours.lib(detours.obj)||In function `DetourEnumerateModules@4':|4]+0x11)||undefined reference to `_except_list'|4]+0x19)||undefined reference to `_except_list'|c:\code\detours\sr|43|undefined reference to `_except_list'|C:\Users\Alford\Documents\c++\detour\detours.lib(detours.obj)||In function `DetourGetEntryPoint@4':|4]+0x11)||undefined reference to `_except_list'|4]+0x19)||undefined reference to `_except_list'|C:\Users\Alford\Documents\c++\detour\detours.lib(detours.obj):c:\code\detours\sr|29|more undefined references to `_except_list' follow|||=== Build finished: 8 errors, 2 warnings ===|
#include "main.h"#include "detours.h"void DLL_EXPORT SomeFunction(const LPCSTR sometext){ MessageBoxA(0, sometext, "DLL Message", MB_OK | MB_ICONINFORMATION);}char __stdcall *getPckt(){ char *hello = "hithere"; return hello;}BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved){ if(fdwReason == DLL_PROCESS_ATTACH){ DetourFunction((PBYTE)0x7686C4C8, (PBYTE)getPckt); } else if (fdwReason == DLL_PROCESS_DETACH) { MessageBox(NULL, "ERROR", "wtf?", MB_ICONERROR); } return TRUE; // succesful}
\Documents\c++\detour\detours.lib(detours.obj):c:\code\detours\sr:29: more undefined references to `_except_list' followcollect2: ld returned 1 exit statusCreating library file: bin\Debug\libdetour.dll.aProcess terminated with status 1 (0 minutes, 0 seconds)8 errors, 2 warnings
could anyone tell me why i am getting all these errors?