You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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++)
^
`
求成品
The text was updated successfully, but these errors were encountered:
`
$ 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++)
^
`
求成品
The text was updated successfully, but these errors were encountered: