Cannot export Test: symbol not defined

LeeChan
  • 134
$ 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

各位大佬有遇到这个问题吗?

回复
阅读 1.1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
你知道吗?

宣传栏