3

I've just updated my OS version to Mojave today and all of a sudden, I'm not able to compile any C/mpi program in the terminal. I'm getting this error message stating:

/usr/local/lib/gcc/x86_64-apple-darwin17.5.0/8.1.0/include- 
fixed/stdio.h:78:10:fatal error: _stdio.h: No such file or directory
#include <_stdio.h>

I'm not sure why but when I enter /usr/local/lib/gcc/x86... there is a file named stdio.h so I'm not sure why is this happening all of a sudden. Would like to know how do I resolve this issue.

I tried performing xcode-select --install prompts that I looked up but nothing changed.

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
Maxxx
  • 3,688
  • 6
  • 28
  • 55
  • 1
    The `gcc` compiler you are using was likely installed via **homebrew**, so you need to do `brew upgrade gcc` – Mark Setchell Sep 25 '18 at 19:28
  • 3
    There is a solution to this problem in the comments to the later question, [Can't compile C program on a Mac after upgrade to Mojave](https://stackoverflow.com/questions/52509602/cant-compile-c-program-on-a-mac-after-upgrade-to-mojave). – Jonathan Leffler Sep 26 '18 at 17:07

0 Answers0