Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x86编译问题 #1235

Open
cjxpj opened this issue Apr 21, 2024 · 0 comments
Open

x86编译问题 #1235

cjxpj opened this issue Apr 21, 2024 · 0 comments

Comments

@cjxpj
Copy link

cjxpj commented Apr 21, 2024

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\go-sqlite3@v1.14.22\sqlite3_opt_preupdate.go:15:16: undefined: SQLiteConn
E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\sqlite3_go18.go:18:10: undefined: SQLiteConn
E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\sqlite3_go18.go:27:10: undefined: SQLiteConn
E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\sqlite3_go18.go:32:10: undefined: SQLiteConn
E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\sqlite3_go18.go:37:10: undefined: SQLiteConn
E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\sqlite3_go18.go:42:10: undefined: SQLiteConn
E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\sqlite3_go18.go:47:10: undefined: SQLiteStmt
E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\sqlite3_go18.go:52:10: undefined: SQLiteStmt
E:\code\gos\pkg\mod\github.com\mattn\go-sqlite3@v1.14.22\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。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant