Mail Archives: djgpp/1997/02/10/07:41:16
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 -