Skip to content

Where to place pcap.h file on Windows? #575

Closed
@vaastav

Description

@vaastav

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!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions