I could compile C programs before, but now I canβt:
$ cat helloworld.c
#include <stdio.h>
int main(void)
{
printf("Hello, world!\n");
return 0;
}
$ gcc helloworld.c
helloworld.c:1:19: error: no include path in which to search for stdio.h
Yes, I have /usr/include/stdio.h. Yes, build-essentialsinstalled.
This problem started after I modified mine ~/.bashrcto run the program installed in my user directory. I know this is wrong, because if I delete ~/.bashrc, it will work.
Which environment variable will be obscured /usr/includeas an inclusion path?
source
share