現在、Raspberry Pi 用の C アプリケーションを修正しています。次のコマンドでアプリケーションをビルドします。
make
libconfigライブラリを使用したいと思います。以下の問題があります
pi@raspberrypi ~/yyyyy $ make
make --no-print-directory all-am
CC tools/xxxxx.o
CCLD tools/xxxxx
tools/xxxxx.c:2434: undefined reference to `config_read_file'
tools/xxxxx.c:2441: undefined reference to `config_lookup_string'
tools/xxxxx.c:2446: undefined reference to `config_destroy'
tools/xxxxx.c:2436: undefined reference to `config_destroy'
libconfig マニュアルでは、次のように述べています。
ライブラリとリンクするには、リンカーへの引数として「-lconfig」を指定します。
makeコマンドでリンクするにはどうすればよいですか?