您尚未登录。

楼主 # 2023-10-26 20:20:36

linn
会员
注册时间: 2023-10-24
已发帖子: 9
积分: 9

求助:alsa编译找不到libstdc++.so.6:

C++交叉编译Helloworld程序,运行显示error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
添加--static,正常运行Helloworld
但当交叉编译关于alsa录音的.cc文件,就是只有简单的录音功能,不添加--static,添加-lasound,可以成功编译,但运行报错error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
添加--static和-lasound,报错:cannot find -lasound
只添加--static报错找不到API函数

离线

#1 2023-10-26 20:59:09

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: 求助:alsa编译找不到libstdc++.so.6:

可能文件系统里面缺 libstdc++.so.6





离线

楼主 #2 2023-10-27 14:26:16

linn
会员
注册时间: 2023-10-24
已发帖子: 9
积分: 9

Re: 求助:alsa编译找不到libstdc++.so.6:

哇酷小二 说:

可能文件系统里面缺 libstdc++.so.6

谢谢回答,通过-static-libstdc++解决了

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn