如何将WinPcap链接到我的Go程序?

I downloaded WinPcap and extracted all the files to my C:\ drive, and did all the things described here.

Then, I added the CGO directives to my main.go and built the program with "go build".

I'm doing all this on windows. but windows totally ignores these directives.

If I start the program, it crashes because wpcap.dll is missing.

Here are my directives:

// #cgo solaris LDFLAGS: -L /opt/local/lib -lpcap
// #cgo linux LDFLAGS: -lpcap
// #cgo dragonfly LDFLAGS: -lpcap
// #cgo freebsd LDFLAGS: -lpcap
// #cgo openbsd LDFLAGS: -lpcap
// #cgo darwin LDFLAGS: -lpcap
// #cgo windows CFLAGS: -I C:/WpdPack/Include
// #cgo windows,386 LDFLAGS: -L C:/WpdPack/Lib -lwpcap
// #cgo windows,amd64 LDFLAGS: -L C:/WpdPack/Lib/x64 -lwpcap
// #include <stdlib.h>
// #include <pcap.h>

What am I doing wrong?