Closed FrankIT60 closed 5 years ago
CGO_ENABLED=0 means it doesn't compile the C/Go bridge. So the first example can't work. And remember: (pure) Go supports cross platform compilation, but C does not. Therefore you can't cross compile on a mac for freebsd when cgo is in action. Run it on a freebsd machine.
@lestrrat Hi, is that mean it can't work on windows if i dont build it with visual studio or cgywin like?
It's the same as when you are building a C program. You build in the same arch/os as the where you intend to run the program.
It's the same as when you are building a C program. You build in the same arch/os as the where you intend to run the program.
Thanks a lot. Instsall vs environment taks lots of time, so i switch to the ubuntu to "quick fix this issue" :(
That works too!
Ciao,
when I try to cross-compile with this env from macos,
get this errors:
with this env:
get this errors:
Any idea?
T.I.A. Franco