[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: making gcc work



>Can you put the following into a file?
>
>---------------------------------------
>#include <stdio.h>
>
>int
>main( )
>{
>    puts( "Hello World" ) ;
>    return 0 ;
>}
>-----------------------------------------
>
>Call the file 'hello.c' or something.  Then run :
>
>$ gcc hello.c -o hello
>$ ./hello
>
>You should see "Hello World" printed on the screen.  If you get any
>error mesages, paste them to the list and attach a copy of the C file
>(just to make sure there wasn't a typo).
>

ok i get:

hello.c:1: stdio.h: No such file or directory

hello.c attached to check i didn't get it wrong

thanks for the help.
#include <stdio.h>

int
  main( )
{
       puts( "Hello World" ) ;
       return 0 ;
}

Reply to: