Click here to Skip to main content
14,774,347 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I got error messages:
SampleDLL.obj : error LNK2001: unresolved external symbol _DetourDetach@8
SampleDLL.obj : error LNK2001: unresolved external symbol _DetourTransactionCommit@0
SampleDLL.obj : error LNK2001: unresolved external symbol _DetourAttach@8
SampleDLL.obj : error LNK2001: unresolved external symbol _DetourUpdateThread@4
SampleDLL.obj : error LNK2001: unresolved external symbol _DetourTransactionBegin@0

I am using Detour Express 2.1. I build the contents. Then, I copied the detours.h to VC98\include folder, detours.lib to VC98\lib folder.
Then on my code: #include "detours.h". Then still won't build successfully. Can someone help me with the correct steps on dealing the detours? Please....thanks a lot. I know, I've done something wrong. Please enumerate briefly the steps if you can provide.
And to be sure, I also added the .lib & .h to my debug folder. Still got errors.
Posted
Updated 14-Sep-10 2:02am
v2

You could Drag&Drop the lib file to your project. (not just add it to the debug directory, because that will not tell the linker to use it)
   
You forgot to actually link the lib file to your project.
   
Comments
this_is_my_alias 14-Sep-10 7:37am
   
Okay.....I'll just take the opportunity...HOW?????
Check the VC settings, if the LIB search also include the directory containing your LIB file.

Also, configure the Linker project settings to link the required library.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900