Linux開発へようこそ。
libiw
をインストールする必要があります。開発ヘッダです。
これは配布に依存します。それはヘッダファイル(複数可)に加え、時にはいくつかのドキュメントだため
[email protected]:~$ apt-cache search libiw
libiw-dev - Wireless tools - development files
libiw30 - Wireless tools - library
libiw30
がバイナリlibです、そして*-dev
パッケージがある:私のDebianでは(Ubuntuのような任意のDebianベースのディストリビューションに多かれ少なかれ同じでなければなりません) (マニュアルページなど)。したがって:
[email protected]:~$ sudo apt-get install libiw-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
[...]
The following additional packages will be installed:
libiw30
The following NEW packages will be installed:
libiw-dev libiw30
libのヘッダーをインストールすると、ライブラリを正しくインストールすることに注意してください。
した後インストールしてください。
[email protected]:~$ find /usr/include/ -name iwlib.h
/usr/include/iwlib.h
[email protected]:~$ find /usr/lib -name "libiw*"
/usr/lib/x86_64-linux-gnu/libiw.so
/usr/lib/x86_64-linux-gnu/libiw.a
なお:
/usr/include
があなたの GCCツールチェーンのヘッダのための標準的な検索パスの一部であり、あなたが-I
独特を追加する必要はありませんので、 ( "include"の場合) オプションです。
/usr/lib
はlibバイナリと同じなので、-l
または -L
(リンク用)オプションは不要です。
出典
2016-03-26 09:22:02
jbm