linux gcc编译错误:statically linked applications requires at runtime the shared libraries-CSDN博客

网站介绍:文章浏览阅读3.8k次。statically linked applications requires at runtime the shared libraries from the glibc version used for linking。此错误是因为gcc编译选项中有static相关参数,此参数禁止gcc编译时使用动态库,即使-lXXXX也不行。此时,把此static选项去掉程序即可通过编译