1. 程式人生 > >精闢!!/usr/bin/ld: cannot find -l* 問題的解決方法

精闢!!/usr/bin/ld: cannot find -l* 問題的解決方法

如果編譯時,有類似如下的錯誤提示:

/usr/bin/ld: cannot find -lpci

則可以安裝相應的庫,來解決這個問題:

sudo apt-get install libpci-dev

其實就是缺少*就安裝*

 /usr/bin/ld: cannot find -l*

 sudo apt-get install lib*-dev