Skip to content
Prev 13154 / 15075 Next

fatal error: 'stdio.h' file not found

Normally, you shouldn't need to set -isysroot or SDKROOT when using
Apple Clang -- it will automatically find and use system headers for
you.

Per Herv?'s original point, I wonder if you have a different compiler
on the PATH? What is the output of:

    which clang

My suspicion is that you might have an alternate compiler on the PATH
that is being used instead of the default Apple Clang.

You might also check e.g.

    xcode-select -p
    xcrun --show-sdk-path

just to make sure those are pointing in the right place -- e.g. I have:

    kevinushey at Kevins-MBP:~
    $ xcode-select -p
    /Library/Developer/CommandLineTools
    kevinushey at Kevins-MBP:~
    $ xcrun --show-sdk-path
    /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk

You could also set CC=/usr/bin/clang just to force the use of the
system compiler (and avoid looking up whatever is first on the PATH).

Best,
Kevin
On Wed, Apr 29, 2020 at 10:24 AM Eric K <ericjkort at gmail.com> wrote: