Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこのコマンドに気づきました:
gcc -Wall `libnet-config --defines` libnet-example-x.c -o libnet-example-x `libnet-config --libs`
libnet-config --definesとの意味は何libnet-config --libsですか?
libnet-config --defines
libnet-config --libs
libnetを使用するアプリケーションをコンパイルするために必要なgcc引数を生成するプログラムを実行しています。
コマンドラインでこれを実行すると、何が起こっているかがわかります。
libnet-config-D...は、引数を指定して呼び出されたときにgccのオプションのリストを返し、他の引数を指定し--definesてのリストを返す実行可能ファイルです-l...。
libnet-config
-D...
--defines
-l...