【编译问题】error LNK2001: unresolved external symbol __iob



【问题描述】
某ocx项目(vs2010)调用某静态lib(vs2008下编译的),报error LNK2001: unresolved external symbol __iob

【解决方案】

在ocx项目中,的stdafx.cpp中增加如下代码

#ifdef __cplusplus
extern "C"
#endif
FILE _iob[3] = {__iob_func()[0], __iob_func()[1], __iob_func()[2]};


发布了46 篇原创文章 · 获赞 13 · 访问量 14万+

猜你喜欢

转载自blog.csdn.net/shineych/article/details/18303085