ssleay32.lib(d1_both.obj) : error LNK2001: unresolved external symbol ___iob_func

解决办法,在 stdafx.cpp 中加入:

// stdafx.cpp


#define stdin  (__acrt_iob_func(0))
#define stdout (__acrt_iob_func(1))
#define stderr (__acrt_iob_func(2))

FILE _iob[] = { *stdin, *stdout, *stderr };
extern "C" FILE * __cdecl __iob_func(void) { return _iob; }

因为时间关系,我还没有去找根本性的原因。

猜你喜欢

转载自www.cnblogs.com/thinkinc999/p/12083487.html