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

推荐订阅源

Security Latest
Security Latest
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Stack Overflow Blog
Stack Overflow Blog
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
GbyAI
GbyAI
云风的 BLOG
云风的 BLOG
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
宝玉的分享
宝玉的分享
博客园 - 【当耐特】
C
Cyber Attacks, Cyber Crime and Cyber Security
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Threat Research - Cisco Blogs
NISL@THU
NISL@THU
Spread Privacy
Spread Privacy
P
Proofpoint News Feed
J
Java Code Geeks
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MyScale Blog
MyScale Blog
T
Tor Project blog
P
Proofpoint News Feed
C
CERT Recently Published Vulnerability Notes
P
Privacy & Cybersecurity Law Blog
MongoDB | Blog
MongoDB | Blog
Simon Willison's Weblog
Simon Willison's Weblog
C
Cybersecurity and Infrastructure Security Agency CISA
L
LINUX DO - 热门话题
小众软件
小众软件
G
GRAHAM CLULEY
P
Privacy International News Feed
AWS News Blog
AWS News Blog
Know Your Adversary
Know Your Adversary
P
Palo Alto Networks Blog
人人都是产品经理
人人都是产品经理
S
Schneier on Security
Scott Helme
Scott Helme
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
B
Blog RSS Feed
T
The Exploit Database - CXSecurity.com
Recent Announcements
Recent Announcements
E
Exploit-DB.com RSS Feed
C
CXSECURITY Database RSS Feed - CXSecurity.com
U
Unit 42
The Register - Security
The Register - Security
S
Securelist
Martin Fowler
Martin Fowler
Project Zero
Project Zero
大猫的无限游戏
大猫的无限游戏
Cisco Talos Blog
Cisco Talos 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>
}