gcc no longer works after up grade to latest Ubuntu
- by Hugh S. Myers
As an example:
hsmyers@ubuntu:~/c_dev$ cat hello.c
#include <stdio.h>
int main(int argc,char **argv) {
printf("Hello World!\n");
return 0;
}
hsmyers@ubuntu:~/c_dev$ gcc -c -o hello.o hello.c
In file included from /usr/include/stdio.h:28:0,
from hello.c:1:
/usr/include/features.h:323:26: fatal error: bits/predefs.h: No such file or directory
compilation terminated.
At a guess somewhere along the way after trying to fix the error message:
/usr/bin/ld: cannot find crt1.o: No such file or directory
I've munged things up completely. Could anyone please advise?
--hsm