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

mingw32-make win-build-win64编译错误 #16

Open
JavenQvQ opened this issue Oct 29, 2024 · 2 comments
Open

mingw32-make win-build-win64编译错误 #16

JavenQvQ opened this issue Oct 29, 2024 · 2 comments

Comments

@JavenQvQ
Copy link

输出
go clean
go: downloading github.com/PuerkitoBio/goquery v1.8.1
go env -w CGO_ENABLED=0
go env -w GOOS=windows
go env -w GOARCH=amd64
go build -ldflags "-s -w" -o build/wechatmp2markdown-v1.1.9_win64.exe main.go
mingw32-make: *** [Makefile:33: win-build-win64] Error -1073741502

@fengxxc
Copy link
Owner

fengxxc commented Oct 31, 2024

有更详细的错误信息吗?或者你可以试试直接用 go build 命令编译

@JavenQvQ
Copy link
Author

JavenQvQ commented Nov 1, 2024

使用go build 会报错connectex: A connection attempt failed,执行go env -w GO111MODULE=on和go env -w GOPROXY=https://goproxy.cn,direct后解决并顺利编译
但还是不能使用mingw32-make win-build-win64编译和上面的错误信息相同,还会报错
go.exe-应用程序错误,应用程序无法正常启动(0xc0000142)。请单击“确定”关闭应用程序

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

2 participants