8000 编译报错 · Issue #1 · zzpu/ztun · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

编译报错 #1

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

Open
MintGrass opened this issue Dec 20, 2021 · 0 comments
Open

编译报错 #1

MintGrass opened this issue Dec 20, 2021 · 0 comments

Comments

@MintGrass
Copy link

`
$ go build main.go

github.com/go-gl/glfw/v3.3/glfw

In file included from /root/go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20200625191551-73d3c3675aa3/c_glfw_lin.go:13:0:
/root/go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20200625191551-73d3c3675aa3/glfw/src/x11_init.c: In function ‘hasUsableInputMethodStyle’:
/root/go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20200625191551-73d3c3675aa3/glfw/src/x11_init.c:340:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (unsigned int i = 0; i < styles->count_styles; i++)
^
/root/go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20200625191551-73d3c3675aa3/glfw/src/x11_init.c:340:5: note: use option -std=c99 or -std=gnu99 to compile your code
/root/go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20200625191551-73d3c3675aa3/glfw/src/x11_init.c: In function ‘getSupportedAtom’:
/root/go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20200625191551-73d3c3675aa3/glfw/src/x11_init.c:361:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
for (unsigned int i = 0; i < atomCount; i++)
^
`

求成品

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
0