www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/07/15:31:27

From: Stefan Wiermann <wiers000 AT mail DOT Uni-Mainz DOT DE>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Compile hello world
Date: Fri, 7 Apr 2000 17:31:13 +0200
Organization: Johannes Gutenberg-Universitaet Mainz, Germany
Lines: 82
Message-ID: <Pine.OSF.4.21.0004071727130.27656-100000@orville.zdv.Uni-Mainz.DE>
References: <38DBF1B1 DOT C188641 AT kscable DOT com> <001801bf95fb$d0531920$bfeda3c3 AT ervsab>
NNTP-Posting-Host: orville.zdv.uni-mainz.de
Mime-Version: 1.0
X-Trace: bambi.zdv.Uni-Mainz.DE 955121484 11087 134.93.8.11 (7 Apr 2000 15:31:24 GMT)
X-Complaints-To: usenet AT mail DOT uni-mainz DOT de
NNTP-Posting-Date: 7 Apr 2000 15:31:24 GMT
X-Sender: wiers000 AT orville DOT zdv DOT Uni-Mainz DOT DE
In-Reply-To: <001801bf95fb$d0531920$bfeda3c3@ervsab>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Uhmm, what about

#include <iostream>

.
.
. 
using namespace std

int  main(  )
{
  cout...
  cin...
}

?

Besides, Maybe you have got problems with those miserable DOS 8.3
filenames, so headerfiles are truncated and can not be found by the
compiler (like streambuf.h, its 9.3)

Solution: unzip the packages with an unzip that can handle long filenames


WBR

SW

On Sat, 25 Mar 2000, ervin nesimovic wrote:

> Hello!
> You should lose that with <iostream.h> use
> #include <iostream>
> int main()
> {
> std::cout<<"Hello world"<<endl;
> }
> 
> std is a new standard so you should write it allways when you are writing
> cin or cout
> std::cout<<
> std::cin>>
> And skip \n couse that may couse some trouble later if you decide to
> programe more in djgpp
> /ervin
> ----- Original Message -----
> From: "Bruce Bales" <bbales AT kscable DOT com>
> Newsgroups: comp.os.msdos.djgpp
> To: <djgpp AT delorie DOT com>
> Sent: Friday, March 24, 2000 11:52 PM
> Subject: Compile hello world
> 
> 
> > Running windows 98 on pentium 200.  48 meg memory.
> >
> > Installed DJGPP with no hitches.  Tried "Hello World" program.
> > #include <iostream.h>
> > int main()
> > {
> >    cout<<"Hello, World\n";
> >    return 0;
> > }
> >
> > Got error message" c:/djgpp/include/iostream.h(31) Error: streambuf.h:
> > no such file or directory."
> > Tried the FAQs and readme's.  Can't find answer.
> >
> > Streambuf.h is in the include directory, along with iostream.h.
> > Tried in MS/DOS and with RHIDE. same result.  Reinstalled twice from
> > CDROM and once from a download from delorie.com.  Always same result,
> > except for include location called out.  Always lists the right
> > location, but says stringbuf.h doesn't exist.
> >
> > In downloaded version, both iostream.h and streambuf.h are in
> > \gpp2952b\lang\cxx\.
> >  I'm working from "Learn C++ in 24 hours" and 15 hours is used up -
> > Help.
> > Bruce Bales
> >
> 
> 

- Raw text -


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