当使用高版本的Visual Studio调用低版本lib时,编译器会发生错误
解决方式如下:

// 使用vs2015 调用 vs2010编译的库时解决"无法解析的外部符号__iob_func 问题"
#if _MSC_VER>=1900  
#include "stdio.h"   
_ACRTIMP_ALT FILE* __cdecl __acrt_iob_func(unsigned);
#ifdef __cplusplus   
extern "C"
#endif   
FILE* __cdecl __iob_func(unsigned i) {
	return __acrt_iob_func(i);
}
#endif /* _MSC_VER>=1900 */  

相关文章:

  • 2022-12-23
  • 2021-04-21
  • 2021-08-07
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-03
  • 2021-10-17
  • 2022-12-23
  • 2022-01-07
  • 2021-06-07
  • 2021-07-13
相关资源
相似解决方案