google / gopacket

Provides packet processing capabilities for Go
BSD 3-Clause "New" or "Revised" License
6.27k stars 1.12k forks source link

How to statically link wpcap.dll into go binary ? #776

Open azureskyL opened 4 years ago

azureskyL commented 4 years ago

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?

azureskyL commented 4 years ago

Could someone help me ?

azureskyL commented 4 years ago

I am still concerned about this issue.

h3llix commented 3 months ago

Hi @azureskyL any luck on this issue ?

ruur commented 3 months ago

@azureskyL install npcap can solve it.

3052 commented 3 months ago

install npcap can solve it.

thats the exact opposite of what is being asked. this might work:

https://packages.msys2.org/package/mingw-w64-x86_64-libpcap