www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/10/07:41:16

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Class libraries...
Date: Sat, 08 Feb 1997 22:48:26 -0800
Organization: Two pounds of chaos and a pinch of salt
Lines: 35
Message-ID: <32FD733A.74C2@cs.com>
References: <Pine DOT SOL DOT 3 DOT 94 DOT 970208183437 DOT 11889B-100000 AT taz>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp209.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Mr. Fuju wrote:
> 
> I've checked ahead in the FAQ as I am reading it and can't find anything
> specific for my difficulty...  Can you help?

Section 8.7.

> I tried writing a "Hello World" program and it wouldn't work!  It didn't
> like me using cin and cout and << and >> operators...  Works fine with
> printf, but I've not used that in so many years.  Are iostream classes
> available?  If not, this poses a problem for me since that is also how I
> do text file I/O, and also how I open binary files for use with the
> read () and write () functions.

You must have done two things to get C++ programs to work:

1) You must have downloaded the C++ packages:  'v2gnu/gpp2721b.zip' and
'v2gnu/lgp271b.zip'.  Make sure they are installed properly.

2) You must link in the C++ libraries when you compile.  You can do this
manually by adding '-lgpp' to the gcc command line, or by using 'gxx'
which does this for you.

You can also try out RHIDE, the Turbo C-style IDE for djgpp.  It
automatically recognizes C++ programs and links in the appropriate
libraries for you.  RHIDE is available as 'v2apps/rhide11b.zip'.  The
latest updates are available from
<http://www.tu-chemnitz.de/~rho/rhide.html>.

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I  |        fighteer AT cs DOT com         |
| Plan:  To find ANYONE willing to |   http://www.cs.com/fighteer   |
| play Descent 2 on DWANGO!        | Tagline: <this space for rent> |
---------------------------------------------------------------------

- Raw text -


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