go build -ldflags "-s -w" -buildmode=c-shared -o libtdInterface.dll TdInterface.go wrapper.go
dumpbin /exports libtdInterface.dll > libtdInterface.def
lib /machine:X64 /def:libtdInterface.def
go生成windows可调用的库
最新推荐文章于 2023-10-11 03:08:54 发布
go build -ldflags "-s -w" -buildmode=c-shared -o libtdInterface.dll TdInterface.go wrapper.go
dumpbin /exports libtdInterface.dll > libtdInterface.def
lib /machine:X64 /def:libtdInterface.def