$ go build -buildmode=c-archive main_windows.go
$ gcc main_windows.def main_windows.a -shared -lwinmm -lWs2_32 -o wg.dll -Wl,--out-implib,wg.lib
C:/Program Files/mingw-w64/x86_64-8.1.0-posix-seh-rt_v6-rev0/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: Cannot export Test: symbol not defined
collect2.exe: error: ld returned 1 exit status
各位大佬有遇到这个问题吗?