如何处理错误LNK2001:未解析的外部符号 [英] how to handle error LNK2001: unresolved external symbol

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

问题描述

回复请。







先谢谢

Reply Please.



Thanks in Advance

推荐答案

您必须提供包含缺失符号的目标文件(或库文件,即 .lib )作为链接器输入。 br />
通常情况下,开发人员记得要包含库头文件,同时忘记链接正确的 .lib 一个。
You have to provide, as linker input, the object file (or the library file, that is .lib) containing the missing symbol.
More often than not, developers remember to include the library header file while forget to link with the proper .lib one.


这篇关于如何处理错误LNK2001:未解析的外部符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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