On Monday 04 February 2008 19:36:17 Bhuvaneswari Ramkumar wrote: > well actually, even the sample applications seem to have the same problem, > So I'm guessing its some installation issue: > > # cc dns.c > /var/tmp//ccImyVt1.o(.text+0x88) : In function 'main' : : undefined > reference to 'libnet_init' > > This is how my compilation result reads for the dns.c sample application. > Says the same for all libnet calls.
Linking 101. If you used the port (/usr/ports/net/libnet) then: cc -L/usr/local/lib/libnet11 -lnet dns.c or: cat <<EOF >BSDmakefile PROG=dns LDADD=-lnet LDFLAGS+=-L/usr/local/lib/libnet11 .include <bsd.prog.mk> EOF then type make :) -- Mel _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"