gcc no longer works after up grade to latest Ubuntu
Posted
by
Hugh S. Myers
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Hugh S. Myers
Published on 2011-11-25T05:12:23Z
Indexed on
2011/11/25
10:07 UTC
Read the original article
Hit count: 393
gcc
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
© Ask Ubuntu or respective owner