C++代码编译遇到 无法解析的外部符号 一种情况记录

因为调用了C代码,加载C代码头文件 ***.h时记得加 extern "C"

extern "C"
{
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
}

 

posted on 2023-05-25 10:48  WenJXUST  阅读(19)  评论(0编辑  收藏  举报