Saturday, April 19, 2008 5:32 PM
I'm trying to use Detours.lib, but when ever i compiled my project I got this error
Error 1 error LNK2019: unresolved external symbol "struct HINSTANCE__ * __stdcall Detoured(void)" (?Detoured@@YGPAUHINSTANCE__@@ XZ) referenced in function _DetourAttachEx @ 20 detours.lib
i'm trying to compile the "simple" example included with the Library documentationAny Idea how to solve it?
Sunday, April 20, 2008 4:38 PM
That symbol should be defined by the import library for detoured.dll. Do you build with the makefile?
Does the linker look for detoured.lib (this is an input on cl.exe command line for the sample makefile)?
If so, does the import library provide the function in question (dumpbin /LINKERMEMBER detoured.lib will tell you)?
Monday, April 21, 2008 4:09 AM
Just need to Link both detours.lib and detoured.lib