Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Oct 2007 16:54:27 +0530
From:      "Vinod VM" <vinuvm@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   cant compile - undefined reference to `bpfattach'
Message-ID:  <8de278a20710050424t68cf95eap99cd34a13e8ce594@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I'm having trouble in compiling my code with gcc on release 6.2

I've included the following headers,

stdlib.h
sys/types.h
sys/socket.h
net/if.h
net/if_var.h
net/if_types.h
net/bpf.h

When compiling the code, i'm getting the following error message

/var/tmp//ccphxfRO.o(.text+0x3c): In function `main':
: undefined reference to `bpfattach'

What am I doing wrong?

Sorry for asking such a newbie question!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8de278a20710050424t68cf95eap99cd34a13e8ce594>