Gogeta70
Gogeta70

Reputation: 901

Using Microsoft Detours - bunch of undefined's

I tried searching the compiler errors on google, but it didn't even return a search result. So, i'm a little lost here. I just downloaded microsoft detours, built it and got the detours.h, detours.lib, detoured.lib, and detoured.dll files from it. Then, trying to use it in my own project, i get the following errors:

http://friendpaste.com/4egvgn7lOeIVOGkbROCnOC

That is the source code, and at the bottom are the compiler errors. If someone could clarify what is causing these problems, it would be helpful. Thanks! ^_^

Upvotes: 0

Views: 1063

Answers (2)

Abyx
Abyx

Reputation: 12928

Check your compiler and its options. You should use the same as detours was built. Probably you should set /EHa and /GS in compiler code generation settings.

Upvotes: -1

Hans Passant
Hans Passant

Reputation: 942187

They are not compiler errors, they are linker errors. Something is very broken in the way you build this, you are linking the wrong version of the CRT. Even the new and delete operators are undefined, suggesting that you don't link the CRT at all. Very hard to do when you use the MSVC compiler. Document how you build this if that didn't help.

Upvotes: 2

Related Questions