Oh, broh...
When i wanted to compile a C program like this:
tc@box:~/Code/C$ gcc accounts.c -o accounts
accounts.c:1:10: fatal error: stdio.h: No such file or directory
1 | #include <stdio.h>
| ^~~~~~~~~
compilation terminated.
tc@box:~/Code/C$ find / -type f -name "stdio.h"
find: /mnt/sda1/lost+found: Permission denied
/tmp/tcloop/gcc/usr/local/include/c++/9.2.0/tr1/stdio.h
/tmp/tcloop/gcc/usr/local/lib/gcc/i486-pc-linux-gnu/9.2.0/include/ssp/stdio.h
/tmp/tcloop/syslinux/usr/local/share/syslinux/com32/include/stdio.h
I've the idea of write into the program this:
#include </tmp/tcloop/gcc/usr/local/include/c++/9.2.0/tr1/stdio.h>
#include </tmp/tcloop/gcc/usr/local/include/c++/9.2.0/tr1/stdlib.h>
.
.
It doesn't seems something too orthodox.
What will happen if the .c executable runs on another machine (and on another distribution with its particular file tree)?.
Thus, How could I do for TC recognize this standand header of C without to have write all its path ?
Thank you in advance.