🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #405

Re: Installing g++ (2.2.2) and the g++-include directory

#405
From: Peter K. Campbell
Date: Thu, 08 Oct 1992 02:39
31 lines
1942 bytes
sjm@merlin.anu.edu.au (Stephen Meatheringham) writes:

>Hi All,
>   I am trying to install gcc and g++ (2.2.2) on our Sun Sparcstations running
>SunOS4.1.2.    Everything seems to go fine - no errors or crashing out during 
>the making and installation.  But ... when we try to compile a C++ program I
>get the following :
>sjm@moggie> g++ -c sjm.c
>sjm.c:2: iostream.h: No such file or directory

>Further digging around in the man page suggests there should be a directory
>such as /usr/local/lib/g++-includes which contains the include files.   I'm
>afraid there's no such beastie to be found, all the other include files for
>gcc look okay in /usr/local/lib/gcc-lib/...

>We do have the Sun supplied C++ compiler and that works fine, when you specify
>-I/lusr/lang/SC1.0.1/include.   Do we have to specify the same for g++?  If so
>why the discussion about g++-include in the man page?

This puzzled me for a while too.  The trouble is that, despite the fact that
gcc is a C++ as well as a c compiler, it only comes with c libraries.  If
you want to use the C++ capabilities you need to obtain and compile the
g++ libraries.  The latest version is libg++-2.2.tar.Z  which can be
obtained from "all good ftp sites" (well, the GNU ones at least :-),
e.g. archie.au (plaza.aarnet.edu.au) in the /gnu directory.

This is unfortunately not made clear anywhere in the manual (at least, not
anywhere that I found).

Peter K. Campbell
p.campbell@trl.oz.au
Technical Details
Message-ID: <1992Oct8.023911.20678@trl.oz.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!titan!tardis!peter
References: <1992Oct6.054902.1081@newshost.anu.edu.au>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.help
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!titan!tardis!peter
From: peter@tardis.trl.OZ.AU (Peter K. Campbell)
Subject: Re: Installing g++ (2.2.2) and the g++-include directory
Message-ID: <1992Oct8.023911.20678@trl.oz.au>
Sender: root@trl.oz.au (System PRIVILEGED Account)
Organization: Telecom Research Labs, Melbourne, Australia
References: <1992Oct6.054902.1081@newshost.anu.edu.au>
Date: Thu, 8 Oct 1992 02:39:11 GMT
Lines: 31