| delorie.com/archives/browse.cgi | search |
| From: | "Johan Venter" <jventer AT writeme DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| References: | <Pine DOT SUN DOT 3 DOT 91 DOT 991020140410 DOT 22660f-100000 AT is> <0A02668AA6DAF2EA DOT B7324B0997533B2E DOT A43653802EA26ABD AT lp DOT airnews DOT net> |
| Subject: | Re: Read Me Third: A Short FAQ List |
| Lines: | 28 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300 |
| Message-ID: | <zlUR3.5444$we.8678@newsfeeds.bigpond.com> |
| Date: | Thu, 28 Oct 1999 10:51:18 +1000 |
| NNTP-Posting-Host: | 139.134.157.251 |
| X-Trace: | newsfeeds.bigpond.com 941101535 139.134.157.251 (Thu, 28 Oct 1999 19:05:35 EST) |
| NNTP-Posting-Date: | Thu, 28 Oct 1999 19:05:35 EST |
| Organization: | Telstra BigPond Internet Services (http://www.bigpond.com) |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Rodeo Red <rodeored AT netstep DOT net> wrote in message
news:0A02668AA6DAF2EA DOT B7324B0997533B2E DOT A43653802EA26ABD AT lp DOT airnews DOT net...
>
> #include <iostream.h>
>
> int main (void);
> {
> cout <<"Hello world!\n";
> }
>
> I believe this declares the main function in the correct way . However, when I
tru
> to compile it this does not create an hello.o program as it should. I get: :
>
> C:\djgpp>gcc -c -Wall hello.cpp
> hello.cpp:4: parse error before `{'
>
> What am I missing now ?
Remove the ; from after int main(void).
--
Johan Venter
ICQ 3643877 - jventer AT writeme DOT com
The TPU DJGPP Interest Group - http://surf.to/djgppig
The RSXNTDJ 1.5 HOWTO - http://surf.to/rsxntdj
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |