Mail Archives: djgpp/1997/02/25/06:28:18
At 19:11 24/02/97 -0600, Zaphod Beeblebrox wrote:
>I'm still really new to C/C++, but I was on a good steady track using the
>Personal C Compiler from C WARE. The general syntax I'm used to doesn't
>apply in GCC. Here is what I'm used to:
>
>main();
^^^ Are sure this is the syntax you're used to?
Even with PCC from C Ware it won't compile!
>{
>puts("Hello World.");
>return(0);
>}
>
>Why won't this compile? I get an unusual parser error at the first {.
>How do I fix this? I know this will be an easy one to answer, but I've
>been hard at work looking for resources that cover the GCC Standard
>Syntax, and I can't find any. So if you could point me to some, I'd be
>eternally grateful. Thanks!
>
>Chris Griffin
>zaphod AT evansville DOT net
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Cesar Scarpini Rabak E-mail: csrabak AT ipt DOT br
DME/ASC Phone: 55-11-268-3522 Ext.350
IPT - Instituto de Pesquisas Tecnologicas Fax: 55-11-268-5996
Av. Prof. Almeida Prado, 532. Sao Paulo - SP 05508-901 BRAZIL
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Raw text -