cgo: C compiler "gcc" not found

297 views Asked by At

I am using Windows 10. I am trying to run a simple Go program but I am getting an error

# github.com/confluentinc/confluent-kafka-go/kafka
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%

I know it's recommended to install MinGW or TDM-GCC,but unfortunately I can't install these programs due to user restrictions. Is there another way to solve it? Perhaps gcc may come as part of some other Windows programs?

1

There are 1 answers

0
Brecht Sanders On

Get a standalone MinGW-w64 build from https://winlibs.com/

No install privileges needed, just unzip the download.