Skip to content

CGO: can't find the gcc in my %path% #75053

@Lin-Ziyue

Description

@Lin-Ziyue

win11 go 1.24.6

Background:
I had used fyne (uses cgo) for about four month ,this week I updated my windows11 and re-install (not update) my go c/c++ ... compilers ,and make some changes on file struct .

Issue:
I updated my existing gcc path to make it act as the past one,but go compiler outputs

# runtime/cgo
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%

To address it ,I tried to put gcc bin path into both system path and user path correctly ,but no use .Existing MinGw-w64 GCC 11.5.0 64bit, VS2022's and TDM-GCC in Path can't be identified .Eventually I download MSYS to solve .

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugReportIssues describing a possible bug in the Go implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions