Re: gcc not compiling

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

 



hi

if you remove the blank between "<" and "stdio.h>" it will compile.

regards,
vassilios

On Mon, 2005-10-31 at 21:03 +0200, Dotan Cohen wrote:
> I'm just getting started in programming C. My first attempt:
> #include < stdio.h>
> void main () {
>     printf("\nHello World!\n");
> }
> 
> Threw this error:
> [dotancohen@localhost ~]$ gcc hello.c
> hello.c:1:20: error:  stdio.h: No such file or directory
> hello.c: In function 'main':
> hello.c:3: warning: incompatible implicit declaration of built-in
> function 'printf'
> hello.c:2: warning: return type of 'main' is not 'int'
> hello.c:4:2: warning: no newline at end of file
> 



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux