go-gl / gl

Go bindings for OpenGL (generated via glow)
MIT License
1.08k stars 74 forks source link

could not import C (cgo preprocessing failed) (compile) when running staticcheck #154

Open stanimirivanovde opened 1 year ago

stanimirivanovde commented 1 year ago

I have the following error when running staticcheck on my app in a golang:1.19-buster docker container. I also installedlibgl1-mesa-dev but it didn't help:

staticcheck ./...
#21 82.97 /go/pkg/mod/github.com/go-gl/glfw/v3.3/glfw@v0.0.0-20211213063430-748e38ca8aec/build.go:53:8: could not import C (cgo preprocessing failed) (compile)