Ade Malsasa Akbar contact
Senior author, Open Source enthusiast.
Friday, January 27, 2017 at 22:05


When I'm using Linux Mint 18.1 Serena, I realized that gcc compiler can not find stdio.h header for C programming language. Apparently, this is because Linux Mint does not ship with libc6-dev package, the package that contains .h header files (including stdio.h) for C programming language. To fix this problem, just install that package
$ sudo apt-get install libc6-dev
and check it by recompiling your C source code.


Before


Compiling with simple command line $ gcc -o filename filename.c gives an error.



After


Compiling with the same command line finished successfully.