hi,
I have recently installed gcc on my box.
however:
1. Man pages do not seem to have been installed / set up correctly.
man gcc returns not found.
2. code cannot be compiled as header files seem to be not found.
please help.
The Code :
Code:
#include <stdio.h>
int main()
{
printf("Hello world\n");
return 0;
}
Compilation :
Code:
roy@somdeb:~/shacles/comp$ gcc -o hello -c hello.c
hello.c:1:19: error: stdio.h: No such file or directory
hello.c: In function ‘main’:
hello.c:4: warning: incompatible implicit declaration of built-in function ‘printf’
Installed files as listed by synaptic
Code:
/.
/usr
/usr/bin
/usr/bin/c89-gcc
/usr/bin/c99-gcc
/usr/share
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/c99-gcc.1.gz
/usr/share/man/man1/c89-gcc.1.gz
/usr/share/doc
/usr/share/doc/cpp
/usr/bin/gcov
/usr/bin/gccbug
/usr/bin/i486-linux-gnu-gcc
/usr/bin/gcc
/usr/share/man/man1/gccbug.1.gz
/usr/share/doc/cpp/README.Bugs
/usr/share/doc/cpp/FAQ.gz
/usr/share/doc/gcc
Thanks,
somdeb