From: gfoot AT mc31 DOT merton DOT ox DOT ac DOT uk (George Foot) Newsgroups: comp.os.msdos.djgpp Subject: Re: QUESTION: General Syntax Date: 25 Feb 1997 01:35:09 GMT Organization: Oxford University Lines: 23 Message-ID: <5etfkd$pj2@news.ox.ac.uk> References: NNTP-Posting-Host: mc31.merton.ox.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Zaphod Beeblebrox (zaphod AT evansville DOT net) wrote: : Why won't this compile? I get an unusual parser error at the first {. : How do I fix this? Delete the semicolon after the ) and put "int " before "main()". If you put the semicolon in, it becomes a prototype, and should not have a body ({...}). : 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! gcc uses almost standard C/C++ - any good book on the language will be relevant to gcc. Don't get one on low-level PC-specific code, though, because this invariably assumes you're using either Borland C or Microsoft C, and will give you non-portable commands from these compilers' vocabulary which gcc won't understand. -- George Foot Merton College, Oxford.