惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
Engineering at Meta
Engineering at Meta
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
量子位
Jina AI
Jina AI
Microsoft Azure Blog
Microsoft Azure Blog
博客园_首页
L
LangChain Blog
A
About on SuperTechFans
人人都是产品经理
人人都是产品经理
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
美团技术团队
博客园 - 三生石上(FineUI控件)
N
Netflix TechBlog - Medium
D
DataBreaches.Net
P
Proofpoint News Feed
小众软件
小众软件
Vercel News
Vercel News
T
The Blog of Author Tim Ferriss
WordPress大学
WordPress大学
雷峰网
雷峰网
G
Google Developers Blog

博客园 - PerKins.Zhu

基于 UniMRCP 的 ASR 插件开发详解:架构、API 与代码 unimrcp_plugin_demo_recog_engine.c 源码解析 unimrcp_plugin_demo_synth_engine.c 源码解析 UniMRCP 插件开发指南 freeswitch【解决方案】— 使用mod_odbc_cdr记录cdr时获取不到b leg 的call-id问题 freeswitch模块开发—mod_python3编译安装 freeswitch模块开发—mod_unimrcp 编译及加载(VS2019) freeswitch模块开发【问题排查】—已存在XXX.lob 中定义,重复引入依赖 centos 安装 sngrep freeswitch模块开发【问题排查】—mod_soundtouch 模块变声无效,电流音 freeswitch模块开发【问题排查】—load模块时提示 127错误 vs2019 编译加载 mod_soundtouch 进行变声测试 freeswitch 新模块开发三(VS2019) VS2019 开发freeswitch 问题排查汇总 TLS可信任自签名CA证书配置 debian安装kamailio voip服务监控及运维 debian 编译安装rtpproxy debian 编译安装 opensips
freeswitch【解决方案】— 使用ffmpeg时,生成时总是提示找不...
PerKins.Zhu · 2025-04-29 · via 博客园 - PerKins.Zhu

当c++程序使用FFmpeg时,总是在编译生成时提示 “无法找到外部引用”,类似于:

严重性    代码    说明    项目    文件    行    禁止显示状态
错误    LNK2019    无法解析的外部符号 "struct AVCodec const * __cdecl avcodec_find_decoder(enum AVCodecID)" (?avcodec_find_decoder@@YAPEBUAVCodec@@W4AVCodecID@@@Z),函数 "void __cdecl decode_pcma_to_pcm(unsigned char *,int,short * *,int *)" (?decode_pcma_to_pcm@@YAXPEAEHPEAPEAFPEAH@Z) 中引用了该符号    mod_mbs    D:\myproject\visualCode\freeswitch\src\mod\applications\mod_mbs\mod_mbs.obj    1    

严重性    代码    说明    项目    文件    行    禁止显示状态
错误    LNK2019    无法解析的外部符号 "void __cdecl av_frame_free(struct AVFrame * *)" (?av_frame_free@@YAXPEAPEAUAVFrame@@@Z),函数 "void __cdecl decode_pcma_to_pcm(unsigned char *,int,short * *,int *)" (?decode_pcma_to_pcm@@YAXPEAEHPEAPEAFPEAH@Z) 中引用了该符号    mod_mbs    D:\myproject\visualCode\freeswitch\src\mod\applications\mod_mbs\mod_mbs.obj    1    

ffmpeg类库是基于c语音实现的,如果在c++中引用相关类库,则需要禁用名称修饰。

extern "C" {
 #include <libavcodec/avcodec.h>
 #include <libavformat/avformat.h>
  #include <libswresample/swresample.h>
}