搜尋此網誌

Linux static or share Appp ...

$ LD_LIBRARY_PATH=./ ./test #LD_LIBRARY_PATH為動態連結程式庫的搜索路徑
$ gcc -static -o test test.o -llib -L./ #在不指定static時會優先使用動態連結程式庫,指定時則阻止使用動態連接庫

 
shared 則似乎用於 產生 shared library....xxxx.so