1

I have clang installed and available in PATH, but when I'm trying to build my project, I'm getting this error:

# github.com/h2non/bimg
cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH%

How to make it work with clang? I've tried gcc, but I got another error: sorry, unimplemented: 64-bit mode not compiled

Andrew
  • 701
  • 1
  • 8
  • 19
  • Can you provide a [minimum reproducible example](https://stackoverflow.com/help/minimal-reproducible-example)? – kimbo Dec 01 '22 at 20:38
  • 1
    Have you set the CC CXX environment variables? The error sounds like you only installed a 32bit gcc. – JimB Dec 01 '22 at 20:49
  • That's probably true. Are you running this on WSL? (I'm assuming this is a follow-up question from https://stackoverflow.com/questions/74645621/how-to-use-bimg-golang-package-for-image-processing-on-windows) – kimbo Dec 01 '22 at 21:00

0 Answers0