delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/04/14:42:08

From: <no DOT spam AT delorie DOT com>whatfor AT mindspring DOT com (Jon DeMarks)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problems Installing DJGPP
Date: Thu, 04 Nov 99 17:27:06 GMT
Organization: MindSpring Enterprises
Lines: 31
Message-ID: <7vsfg4$uds$2@nntp5.atl.mindspring.net>
References: <nW8U3.35224$Jp4 DOT 57650 AT news20 DOT bellglobal DOT com>
NNTP-Posting-Host: d1.8a.9a.f0
X-Server-Date: 4 Nov 1999 17:24:20 GMT
X-Newsreader: News Xpress 2.0 Beta #2
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <nW8U3.35224$Jp4 DOT 57650 AT news20 DOT bellglobal DOT com>, "Derek Battams" <dbattams AT canada DOT com> wrote:
>I just downloaded all of the ZIP files and unzipped them.  To ensure that
>I've installed all of the files correctly I tried to compile the following
>C++ program:
>
>#include <iostream>
>
>int main()
>{
>   cout << "Hello World!";
>   return 0;
>}
>
>When I tried to compile it I got the following errors:
>
>bunch of crap taken out<
>Help appreciated,
>
>Derek Battams
>
>
try this:
------------HELLO.C------------------
#include <stdio.h>

void main() { printf("Hello World\n"); }
-----------End HELLO.C-------------
but if you really want the iostream, then use:
#include <iostream.h>

you always need to remember the .h part.

- Raw text -


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