未解析的外部符号__imp_XXX错误(VS2010 c ++) [英] unresolved external symbol __imp_XXX error (VS2010 c++)
本文介绍了未解析的外部符号__imp_XXX错误(VS2010 c ++)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个链接到静态库的程序。此库已导出全局变量。
此变量在.def文件中定义,但我收到以下错误:
未解析的外部符号__imp_XXX(其中XXX是变量名称)。
有谁知道原因?
解决方案
就我而言,解决问题的方法是确保我只使用
(SolutionDir)
(平台)\
I have a program that links to a static library. This library has exported global variable.
This variable is defined in the .def file, but I get the following error:
unresolved external symbol __imp_XXX (where XXX is the variable name).
Does anyone knows the reason for that?
解决方案
In my case, what solved the problem was making sure that I only use
(SolutionDir)
(Platform)\
这篇关于未解析的外部符号__imp_XXX错误(VS2010 c ++)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文