www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/25/08:55:46

From: "AtmaMidnight" <atma AT mailandnews DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <c5yQ3.2383$we DOT 3631 AT newsfeeds DOT bigpond DOT com> <19991024031801 DOT 09189 DOT 00000463 AT ng-cq1 DOT aol DOT com>
Subject: Re: Rhide 1.4
Lines: 25
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: <8fWQ3.321$f3.719@news1.iquest.net>
Date: Mon, 25 Oct 1999 05:33:07 -0500
NNTP-Posting-Host: 209.43.60.114
X-Trace: news1.iquest.net 940847172 209.43.60.114 (Mon, 25 Oct 1999 05:26:12 EDT)
NNTP-Posting-Date: Mon, 25 Oct 1999 05:26:12 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

If you are saving the file as a .cpp, gcc assumes it is a c++ program.  If
you RETURN(0) then you need to have int main().  Since it is a c++ program
though, you don't even need to return a value...It might be easier just to
use void main() and then skip the RETURN(0).

Hope that helps...

Mookow0 <mookow0 AT aol DOT com> wrote in message
news:19991024031801 DOT 09189 DOT 00000463 AT ng-cq1 DOT aol DOT com...
> Er, I just forgot the ; after cout.  now it just says
> Error: d:/rhide/bin/ld.exe: cannot open -lstdcx: No such file or directory
> (ENONET)
>
> I think I saw some posts earlier on the newsgroup, so I'll check back
> there..but if you want to help and need the code (dunno why..) here it is:
> my keyboard won't display a number/pound thing, so i'll use @
>
> @include <iostream.h>
> main()
> {
> cout << "Hello, World.";
> return 0;
> }


- Raw text -


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