出现error LNK2019: 无法解析的外部符号 "void __cdecl av_close_input_file(struct AVFormatContext *)" ([email=?av_close_input_file@@YAXPAUAVFormatContext@@@Z]?
包含的文件要像
|
extern "C" { #include "libavcodec\avcodec.h" #include "libavformat\avformat.h" #include "libswscale\swscale.h" }; |
本文介绍了解决在使用FFmpeg库时遇到的LNK2019错误的方法,该错误通常出现在链接阶段,涉及到未解析的外部符号问题。文章提供了正确的头文件包含方式以确保编译器能正确找到所需的符号。
1863

被折叠的 条评论
为什么被折叠?



