go-sqlite在window下报错:implicit declaration of function ‘_beginthread‘

runtime/cgo: gcc_libinit_windows.c:136:27: error: implicit declaration of function ‘_beginthread’

在window下使用go-sqlite会存在gcc问题:

runtime/cgo: gcc_libinit_windows.c:136:27: error: implicit declaration of function '_beginthread'

解决方案

删除其他的gcc 环境,只是用tdm-gcc ,就可以编译成功

tdm-gcc下载地址:https://jmeubank.github.io/tdm-gcc/download/

在这里插入图片描述

一路安装即可。

然后即可正常编译

posted @ 2025-01-03 05:01  凌康  阅读(1)  评论(0)    收藏  举报  来源