寫了個簡單的hello.c程式,使用ti c6678的交叉編譯工具來編譯靜態鏈接可執行程式,輸入如下命令:
c6x-uclinux-gcc -static -static-libgcc -o hello hello.c
查看hello型別,輸入file hello,顯示dynamically linker(used shared libs),請問如何生成靜態鏈接程式,是c6x-uclinux-gcc的問題么
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/167038.html
標籤:應用程序開發區
下一篇:centos7 異步io問題
