Re: gcc not compiling

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

 



On 11/1/05, A.G. <prothonotar@xxxxxxxxxxxxxxxxxxxx> wrote:
> 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");
> > }
> >
>
> Doltan,
>
> I see long discussions about stuff. In case no one has actually answered
> your question, the problem is you have a space between "<" and "stdio.h"
> and so the compiler is looking for a while with an embedded space in it.
>
> Get rid of that space and your program should compile (though you'll get
> some of the same warnings).
>

Thanks, actually, it was answered several times! I removed the space
and made some other changes that were suggested here, and it compiled.

I also enjoyed the discussion regarding int vs. void and properly
returning a 0 after the function ends. I should get to class a little
more prepared than the next guy! Thank you all!

Dotan
http://english-lyrics.com/el/band.php/377/Nine%20Inch%20Nails


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

  Powered by Linux