Хотел собрать софтину, а оно даже hello world не компилирует. Как починить?
Debian 6.0.4. Система после переноса с компа на комп.
witt@debian:~/Desktop$ cat hw.c
#include <stdio.h>
int main(int argc, char **argv)
{
printf("Hello world!\n");
return 0;
}
witt@debian:~/Desktop$ gcc hw.c
In file included from /usr/include/stdio.h:28,
from hw.c:2:
/usr/include/features.h:346:25: error: sys/cdefs.h: No such file or directory
In file included from /usr/include/stdio.h:34,
from hw.c:2:
/usr/lib/gcc/i486-linux-gnu/4.4.5/include/stddef.h:211: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
...
... //много-много похожих ошибок
...
/usr/include/stdio.h:893: error: expected ‘)’ before ‘*’ token
/usr/include/stdio.h:916: error: expected declaration specifiers before ‘__END_DECLS’
/usr/include/libio.h:462: error: old-style parameter declarations in prototyped function definition
hw.c:8: error: expected ‘{’ at end of input
witt@debian:~/Desktop$