google / google/gopacket

How to statically link wpcap.dll into go binary ?

Open
#776 5 comments 5 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
6.8k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

I am trying to use gopacket on windows 10 x64 **without wpcap installed**.
I use `pcap.FindAllDevs()` in my go program and I compile my go binary with `go build`.
When I run my go binary on window 10 x64 **without wpcap installed** , it report an error:
`couldn't load wpcap.dll`
So, How to statically link `wpcap.dll` into go binary using `go build`?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.