I was writing dome some sort of C programs, usually basic stuff but when I tried to compile one, it said ]fatal error: stdio.h: No such file or
directory[\b].
Here is my code for that program : #include<stdio.h>
int main(){
printf("Testing....\n");
return 0;
}
Then I remembered something and located the stdio.h file, it gave me /usr/lib/syslinux/com32/include/stdio.h, then once again I edited
my program to look like this
#include "/usr/lib/syslinux/com32/include/stdio.h"
int main(){
printf("Testing....\n");
return 0;
}
I thought it would work but then, it gave me another error, much like the old one.
The error said In file included from try.c:1:0:
/usr/lib/syslinux/com32/include/stdio.h:8:26: fatal error: klibc/extern.h: No such file or directory
#include <klibc/extern.h>
^
compilation terminated.
The problem is not only with stdio.h header file, but with all others header files that I am trying to use.
My OS is Linux Mint 17 Quiana and I am using gcc compiler to compile all this.
Can anybody tell me how to correct all this??
I really need help with it.