当前位置:网站首页>【技术教程】Visual Studio 2017自建WebRTC中peerconnection_client程序报LNK2019 无法解析的外部符号错误
【技术教程】Visual Studio 2017自建WebRTC中peerconnection_client程序报LNK2019 无法解析的外部符号错误
2020-11-10 08:53:00 【osc_42k1cyjd】
我们讲了TSINGSEE青犀视频研发团队正在对webrtc进行研究,尝试了在Visual Studio 2017自建WebRTC中peerconnection_client程序。上文我们处理了几个报错问题,有兴趣可以看一下。
解决完前文的问题之后,我们再次编译peerconnection_client程序,会出现各种“LNK2019 无法解析的外部符号 public:_thiscall xxxxxx(xxxxxx), 该符号在函数 protected:void _thiscall xxxxxx(xxxxxx)中被引用”;导致程序无法继续编译。

分析问题
使用编译的window WebRTC的库,引用了头文件,但是没有引用第三方库文件,所以报“无法解析外部符号”错误。
解决问题
1、通常配置一下项目属性就好了。在项目属性的库文件目录里面添加相应库文件所在的目录(连接器->输入->附加依赖项里加入对应的库文件即可);但是对于WebRTC引用的库文件比较多,所以打开编译好的WebRTC输出文件目录,并找到peerconnection_client.ninja文件,打开改文件,如下图,找到所有(.lib文件),添加到vs库文件即可。

(文字过长,只能截取一小部分)
2、还有一种方法,即在vs2017中利用预处理命令#pragma comment(lib, “xxx.lib”);把xxx替换成想要加载的lib文件。关于这条命令的使用其实不是最终目的,因为对于WebRTC引用的库文件比较多,所以写起来有点繁琐,不过该方法是第一种解决方案的代码话版本,大家也可以尝试一下。

以上介绍的编译问题就到这里了,当然TSINGSE青犀视频研发团队欢迎大家与我们继续探讨开发问题。同时,如果大家还想了解更多视频相关解决方案,也欢迎联系我们了解。
版权声明
本文为[osc_42k1cyjd]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4325464/blog/4710491
边栏推荐
- 《Python Cookbook 3rd》笔记(2.2):字符串开头或结尾匹配
- Promote China manufacturing upgrade, 3D visualization of production line in automobile assembly workshop
- 假如需要一百万个对象
- 一幅图像能顶16x16字!——用于大规模图像缩放识别的变压器(对ICLR 2021年论文的简要回顾)
- 关于centos启动报错:Failed to start Crash recovery kernel arming的解决方案
- The length of the last word in leetcode
- 实验2
- Overview of the most complete anomaly detection algorithm in history
- 编码风格:Mvc模式下SSM环境,代码分层管理
- For programmers, those unfamiliar and familiar computer hardware
猜你喜欢

仅发送options请求,没有发送post解决方案

CSDN bug3: to be added

mac终端Iterm2支持rz和sz的解决方案

利用尾巴作为时间序列进行处理来识别鲸鱼
![[paper reading notes] network embedding with attribute refinement](/img/71/760f29f8a13b366cf3bad4fb48bd63.jpg)
[paper reading notes] network embedding with attribute refinement

推动中国制造升级,汽车装配车间生产流水线 3D 可视化
![[leetcode] 92 integer inversion](/img/3b/00bc81122d330c9d59909994e61027.jpg)
[leetcode] 92 integer inversion

编码风格:Mvc模式下SSM环境,代码分层管理

关于centos启动报错:Failed to start Crash recovery kernel arming的解决方案

JS label syntax jumps out of multiple loops
随机推荐
Assign the corresponding key and value in the map to the object
JMeter的简单使用
【LeetCode】 93 平衡二叉树
JMeter interface test -- a solution with token
Three ways to solve coursera video unable to watch
Network security engineer Demo: original * * controls your server like this! (2)
Gets the property value of a column in the list collection object
CSDN bug7: to be added
[paper reading notes] a multilayered informational random walk for attributed social network embedding
假如需要一百万个对象
lodash.js Source code flatten
Promote China manufacturing upgrade, 3D visualization of production line in automobile assembly workshop
csdn bug4:待加
pytorch训练GAN时的detach()
[elixir! 0073] beam built-in memory database ETS
Youtube订阅——解决在弹窗内使用Youtube订阅按钮高度显示不全的问题
csdn bug11:待加
Notes on Python cookbook 3rd (2.2): String start or end match
CCR炒币机器人:新冠肺炎加速了监管机构对CBDC的兴趣
分布式文档存储数据库之MongoDB索引管理