Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

hello world help!

Name: Anonymous 2008-01-28 4:59

I installed the gcc package in Debian,

whipped up a file:
hello.c
#include <stdio.h>

main ()
{
  printf ("Hello, world!\n");
  return 0;
}


then in a terminal entered:
gcc hello.c -o hello

then got:
hello.c:1:19: error: stdio.h: No such file or directory
hello.c: In function ‘main’:
hello.c:5: warning: incompatible implicit declaration of built-in function ‘printf’


/prog/, how come I fail?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List