小编Use*_*ser的帖子

如何解决此问题:libm.so.6:找不到版本“GLIBC_2.29”,C/C++?

当我尝试在 RPI CM4 上执行我的 C++ 演示应用程序时,该应用程序是在 Ubuntu 操作系统上交叉编译的:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.1 LTS
Release:    20.04
Codename:   focal
Run Code Online (Sandbox Code Playgroud)

这是我在 RPI 中的错误:

root@rpi-cm4:/home/pi# ./demoApp
./demoApp: /lib/arm-linux-gnueabihf/libm.so.6: version `GLIBC_2.29' not found (required by ./demoApp)
./demoApp: /lib/arm-linux-gnueabihf/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by ./demoApp)
Run Code Online (Sandbox Code Playgroud)

有关我的 RPI 的一些信息:

# lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description:    Raspbian GNU/Linux 10 (buster)
Release:        10
Codename:       buster

# uname -a
Linux rpi-cm4 5.15.65-v7l+ #1582 …
Run Code Online (Sandbox Code Playgroud)

c c++ glibc libs raspberry-pi4

7
推荐指数
2
解决办法
5万
查看次数

标签 统计

c ×1

c++ ×1

glibc ×1

libs ×1

raspberry-pi4 ×1