-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Where to place pcap.h file on Windows? #575
Comments
At the moment you have two possibilities:
If you try 1. please report success or failure to the pull request. Thanks. |
Hmm, if I use option 2 then I am still getting the following error : Seems like I am missing a dll.... I haven't tried option 1 yet but I will let you know how it turns out for me if and when I try it. |
Oh sorry forgot; For 64 bit Windows you need to follow https://stackoverflow.com/questions/38047858/compile-gopacket-on-windows-64bit |
#568 got merged. Does it work for you? |
Closed due to inactivity and being out of date (cgo is not needed any longer on windows) |
Hi,
I am trying to use gopacket on windows but I get the following error:
github.com/google/gopacket/pcap
C:\Go-Path\src\github.com\google\gopacket\pcap\pcap.go:22:18: fatal error: pcap.h: No such file or directory
#include <pcap.h>
^
compilation terminated.
I know the issue is that I don't have libpcap installed. I found winpcap as an alternative which can provide the relevant header and source files. I was just confused as to where to place these files in relation to gopacket so that I have a successful compilation?
Thanks!!
The text was updated successfully, but these errors were encountered: