lnk错误 [英] lnk errors

查看:129
本文介绍了lnk错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在学习弯路,,,从绕道的.documentation文件我复制了简单.cpp文件到visual c ++ 2010上检查它是否运行。我还链接了detours.lib库。但在构建解决方案后,我遇到的错误是:

I am learning detours ,,, from the .documentation file of detours i copied the simple.cpp file onto visual c++ 2010 to check whether it runs or not. I also have linked the detours.lib library. But after building the solution i am getting errors which are:

1。错误LNK2019:未解析的外部符号_DetourCopyInstruction @ 20在函数_DetourAttachEx @ 20中引用,

1. error LNK2019: unresolved external symbol _DetourCopyInstruction@20 referenced in function _DetourAttachEx@20, and

2。错误LNK1120:1个未解析的外部。

2. error LNK1120: 1 unresolved externals.

如何删除这些错误

推荐答案

你是如何链接绕道的?通过#pragma指令或通过VS2010项目属性?根据您提供给我们的信息,我怀疑您没有正确链接,请说明您的步骤。
How did you link the detours library? Via a #pragma directive or via VS2010 project properties? From the information you give us I suspect that you didn't link correctly, please state your steps.


这篇关于lnk错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆