安裝了/usr/ports/net/libnet/後找不到libnet.h - BBS

Table of Contents

在freebsd下用port安裝了libnet後…

在t.c裡面使用

#include <libnet.h>


使用gcc t.c -o t -lnet出現

t.c:2:20: error: libnet.h: No such file or directory

ldconfig -r 也有看到 -lnet

這是為什麼呢?

--

All Comments