go-gl/gl

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

stanimirivanovde opened this issue · 0 comments

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)