x86编译问题
vscode { "type": "go", "label": "go: build x86 Windows", "command": "build", "args": [ "-ldflags", "-H=windows -s -w", "-o", "dist/juice_x86.exe", "-tags", "windows cgo", "-v", "-mod=mod" ], "problemMatcher": [ "$go" ], "group": { "kind": "build", "isDefault": true }, "detail": "生成 x86 位 Windows 可执行文件", "options": { "env": { "GO111MODULE": "on", "GOARCH": "386" } } },
返回结果 github.com/mattn/go-sqlite3
github.com/mattn/go-sqlite3
E:\code\gos\pkg\mod\github.com\mattn\[email protected]\sqlite3_opt_preupdate.go:15:16: undefined: SQLiteConn E:\code\gos\pkg\mod\github.com\mattn\[email protected]\sqlite3_go18.go:18:10: undefined: SQLiteConn E:\code\gos\pkg\mod\github.com\mattn\[email protected]\sqlite3_go18.go:27:10: undefined: SQLiteConn E:\code\gos\pkg\mod\github.com\mattn\[email protected]\sqlite3_go18.go:32:10: undefined: SQLiteConn E:\code\gos\pkg\mod\github.com\mattn\[email protected]\sqlite3_go18.go:37:10: undefined: SQLiteConn E:\code\gos\pkg\mod\github.com\mattn\[email protected]\sqlite3_go18.go:42:10: undefined: SQLiteConn E:\code\gos\pkg\mod\github.com\mattn\[email protected]\sqlite3_go18.go:47:10: undefined: SQLiteStmt E:\code\gos\pkg\mod\github.com\mattn\[email protected]\sqlite3_go18.go:52:10: undefined: SQLiteStmt E:\code\gos\pkg\mod\github.com\mattn\[email protected]\sqlite3_opt_preupdate_omit.go:20:10: undefined: SQLiteConn
- 终端进程“E:\code\Go\bin\go.exe 'build', '-ldflags', '-H=windows -s -w', '-o', 'dist/juice_x86.exe', '-tags', 'windows cgo', '-v', '-mod=mod'”已终止,退出代码: 1。