用vs2015调试ffmpeg写的项目时出现的两个问题:
问题一:
"LNK2019 unresolved external symbol __imp____iob_func reference in function _ShowError”
解决方法:在源码添加这句:extern "C" { FILE __iob_func[3] = { *stdin,*stdout,*stderr }; }
问题二:
"unesolved external symbol _imp_fprintf referenced in funciton _showerror"
解决方法: 右键项目--Properties--Configuration--Linker--Input--Additional Dependencies 添加库 legacy_stdio_definitions.lib