Mail Archives: djgpp/1997/02/24/21:14:39
From: | Zaphod Beeblebrox <zaphod AT evansville DOT net>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | QUESTION: General Syntax
|
Date: | Mon, 24 Feb 1997 19:11:51 -0600
|
Organization: | World Connection Services
|
Lines: | 18
|
Message-ID: | <Pine.SOL.3.91.970224190743.3403A-100000@world.evansville.net>
|
NNTP-Posting-Host: | world.evansville.net
|
Mime-Version: | 1.0
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
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();
{
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
- Raw text -