ここで提供されている C コードの例をコンパイルしようとしていますhttp://www.bani.com.br/lang/en/2012/05/programmatically-managing-iptables-rules-in-c-iptc/
使用(投稿で説明されているように):
cc `pkg-config –cflags –libs libiptc` iptablesExample_2.c -o iptablesExample_2
また、次を使用してコンパイルを試みました。
sudo gcc -g -o iptablesExample_2 iptablesExample_2.c -liptc -liptables -ldl
それも機能せず、今回のエラーは次のとおりです。
/usr/bin/ld: cannot find -liptables
collect2: ld returned 1 exit status
このhttp://wiki.tldp.org/iptc%20library%20HOWTOの最後にある例も試してみました が、同じ問題がありました
Linux カーネル: 3.8.2 iptables バージョン: v1.4.12