From: "John M. Aldrich" 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: Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp209.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 . -- --------------------------------------------------------------------- | 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: | ---------------------------------------------------------------------