Created
January 29, 2019 17:04
-
-
Save amsharifian/2ced74227a5bfc1ad583486227b5c51d to your computer and use it in GitHub Desktop.
mac-os: Using a home-built compiler leads to fatal error: 'stdio.h' file not found
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
I've found a way. If we are using Xcode 10, you will notice that if you navigate to the /usr in the Finder, you will not see a folder called 'include' any more, which is why the terminal complains of the absence of the header files which is contained inside the 'include' folder. In the Xcode 10.0 Release Notes, it says there is a package: | |
/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg | |
and you should install that package to have the /usr/include folder installed. Then you should be good to go. | |
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment