04/11/07 21:18:12 RyhwNACn
libpcapについて質問です
pcap.hを利用したソースファイルがあるのですが、
$gcc -lpcap hogehoge.c
とすると、
hogehoge.c: In function `main':
hogehoge.c:4: warning: return type of `main' is not `int'
/tmp/ccYRVfwX.o(.text+0x52): In function `main':
: undefined reference to `pcap_dump_open'
collect2: ld returned 1 exit status
と、なってしまいます。
何か解決策はありますでしょうか。