![]() Then go into example folder and run: x86_64-w64-mingw32-gcc main.c. I run go build like this: CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc AR=x86_64-w64-mingw32-gcc GOOS=windows GOARCH=amd64 go build -v -a -buildmode=c-archive. Return ~/Development/test $ cat example/main.c As macOS typically performs security checks the first time an application is used, the install command can take several. ![]() I have following files in my folder: example/ go.mod test.c ~/Development/test $ cat go.mod GOMOD="/Users/wsong/Development/test/go.mod" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64" Press enter and type your password when prompted. If you want it to shut down in an hour, type +60. If you want to do so immediately, type now. Replace![]()
0 Comments
Leave a Reply. |