statically linked applications requires at runtime the shared libraries from the glibc version used for linking。
此错误是因为gcc编译选项中有static相关参数,此参数禁止gcc编译时使用动态库,即使-lXXXX也不行。
此时,把此static选项去掉程序即可通过编译
本文详细解释了在使用gcc编译时遇到的静态链接应用无法加载特定glibc版本的共享库错误。通过移除与静态链接相关的编译选项,可以解决此类问题并顺利通过编译。
statically linked applications requires at runtime the shared libraries from the glibc version used for linking。
此错误是因为gcc编译选项中有static相关参数,此参数禁止gcc编译时使用动态库,即使-lXXXX也不行。
此时,把此static选项去掉程序即可通过编译
1万+
1591

被折叠的 条评论
为什么被折叠?