www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/25/06:28:18

Date: Tue, 25 Feb 1997 12:06:43 -0300
Message-Id: <1.5.4.16.19970225081854.37ff7f52@dmeasc.rc.ipt.br>
Mime-Version: 1.0
To: Zaphod Beeblebrox <zaphod AT evansville DOT net>, djgpp AT delorie DOT com
From: Cesar Scarpini Rabak <csrabak AT dce03 DOT ipt DOT br>
Subject: Re: QUESTION: General Syntax

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019