Created
May 11, 2022 03:21
-
-
Save barbietunnie/bd20713ed0726f3a224e3fbbc3e13fb0 to your computer and use it in GitHub Desktop.
Fix: stdlib.h compile error (Mac)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To fix the error, set the folowing environment variables on your Mac before compilation | |
export CGO_ENABLED=1 | |
export CC=gcc | |
# Sample compilation | |
go build -o docker-bench |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment