I am using a MacBook M1 Pro and just upgraded to macOS Ventura. When I run "go build" for cross-compiling, it keeps prompting me to install the command-line tools. After using "sudo xcode-select -switch /Library/Developer/CommandLineTools", it still shows an error message while compiling: "_cgo_export.c:3:10: fatal error: 'stdlib.h' file not found". Do you have any solutions?
stdlib.h' file not found
Add a Comment