OK, your code, the content of "hello.c":
#include <stdio.h> /* include the headers that have printf in them */
int main(int argc, char *argv) /* correctly call the main function, yours would work but it will cause a warning when compiling */
printf("hello\n"); /* the \n puts a new line at the end */
return (0); /* as main has been defined as returning an int then we should really return something */
To compile make sure that hello.c is in the current directory:
bash$ gcc -o hello hello.c
This in the normal world would compile hello.c into an executable of hello
Now if it throwing errors on compile time then the problem is likely that it cannot find the libraries it needs.
Can you check that there is a file called "/usr/lib/libstdc++*" ?
also a quick explanation of how you installed gcc and the Linux version/distribution you are using would help.