函数_OpenSSLDie中引用的未解析的外部符号__imp____iob_func [英] unresolved external symbol __imp____iob_func referenced in function _OpenSSLDie
本文介绍了函数_OpenSSLDie中引用的未解析的外部符号__imp____iob_func的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
将我的项目从VS2008迁移到VS2015时,我遇到了错误.
I am getting below error while migrating my project from VS2008 to VS2015.
21>TFCLd.lib(cryptlib.obj) : warning LNK4217: locally defined symbol _fprintf imported in function _OpenSSLDie
21>TFCLd.lib(rsa_sign.obj) : warning LNK4049: locally defined symbol _fprintf imported
21>TFCLd.lib(cryptlib.obj) : error LNK2019: unresolved external symbol __imp____iob_func referenced in function _OpenSSLDie
21>TFCLd.lib(rsa_sign.obj) : error LNK2001: unresolved external symbol __imp____iob_func
该项目在VS2008中构建,但在VS2015中存在上述错误.我可以知道我在想什么吗?
The project builds in VS2008 but with above error in VS2015. May I know what am I missing.
推荐答案
将此内容放在类头文件的开头或stdafx.h
Put this in the begin of your class header file or in stdafx.h
FILE _iob[] = { *stdin, *stdout, *stderr };
extern "C" FILE * __cdecl __iob_func(void) { return _iob; }
这篇关于函数_OpenSSLDie中引用的未解析的外部符号__imp____iob_func的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文