linux gcc编译错误:statically linked applications requires at runtime the shared libraries
生活随笔
收集整理的這篇文章主要介紹了
linux gcc编译错误:statically linked applications requires at runtime the shared libraries
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
statically linked applications requires at runtime the shared libraries from the glibc version used for linking。
此錯誤是因為gcc編譯選項中有static相關參數,此參數禁止gcc編譯時使用動態庫,即使-lXXXX也不行。
此時,把此static選項去掉程序即可通過編譯
總結
以上是生活随笔為你收集整理的linux gcc编译错误:statically linked applications requires at runtime the shared libraries的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Go: 字符串比较的三种方法
- 下一篇: MYSQL: DML/DDL/DCL