Open ramacatur opened 3 years ago
Does it compile normally when just building for macos?
Does it compile normally when just building for macos?
Yes, it is normally when building for macos.
Do you have your go.mod setup correctly? maybe try a go mod tidy
to make sure all your imports are in your go.mod.
I don't use go.mod in my code. do i have to use linux to compile?
Ah that's the problem then. you must be missing the dependency somehow. I'd recommend looking into using go modules to manage your dependencies. You might be able to fix your build with go get -u https://github.com/faiface/beep@latest
but I'm not 100%.
I had the same problem,setting Environment CGO_ENABLED=1 in the IDE solves the problem.
Hey, I try compile my application to linux from mac but I got error like this:
this is my
go env
thanks for the solution