C Compiler can't find stdint.h on Mac OSX 10.11.3

Hey,

I tried to compile a simple program using the pgcc driver which only includes stdint.h:

#incude <stdint.h>

int main() { return 0; }

This fails with the following error message:

PGC-F-0206-Can't find include file /usr/include/stdint.h (/opt/pgi/osx86-64/16.1/include/stdint7XC.h: 67)
PGC/x86-64 OSX 16.1-0: compilation aborted

Gcc, Clang and Intel compiler work just fine as well as using the pgc++ driver. What am I doing wrong? Any help is appreciated!

Your example works for me with gcc and pgcc on el capitan.


Do you have /usr/include/stdint.h on your system, and is it readable
by the PGI compilers?

dave

Hey Dave,

It turns out my Xcode was messed up as I was missing /usr/include/. After rerunning xcode-select --install it works now. Thanks!

Cheers,
Fabian