Skip to content

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

@stanimirivanovde

Description

@stanimirivanovde

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/[email protected]/build.go:53:8: could not import C (cgo preprocessing failed) (compile)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions