Ubuntu 使用交叉编译工具编译,提示错误如下:
arm-linux-gcc: error while loading shared libraries: libstdc++.so.6: cannot open shared object file:
解决办法
安装相应的库。
①安装指令
sudo apt install lib32stdc++6
②安装过程
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
gcc-8-base lib32gcc1 libatomic1 libcc1-0 libgcc1 libgomp1 libitm1 liblsan0
libmpx2 libquadmath0 libstdc++6 libtsan0
The following NEW packages will be installed:
lib32gcc1 lib32stdc++6
The following packages will be upgraded:
gcc-8-base libatomic1 libcc1-0 libgcc1 libgomp1 libitm1 liblsan0 libmpx2
libquadmath0 libstdc++6 libtsan0
11 upgraded, 2 newly installed, 0 to remove and 568 not upgraded.
Need to get 463 kB/1,642 kB of archives.
③安装完成