On Fri, 18 Jun 1999, Praveen Sinha wrote:

> Hi,
>          I am using red hat linux 5.2
>           My GCC version is 2.7.2.3
>          I am stuck at compiling c++ program .I wrote a simple
> program to display a string .
>           when I tried to compile it a file called cc1plus is not
> found . What is this file ? I am using     iostream.h file  which it
> could not find.This file does exist in header file list.

But does it exist in /usr/include?  That is where the compiler looks for
it.  To compile programs on a RedHat system you need the -devel rpms for
each of the libraries the program uses.  In the case of c++, that is
glibc-devel and libg++-devel, as well as glibc- and libg++.  These are
all included in the standard RedHat distro, but you led the install to
believe you didn't want some of them.  A compiler is useless without
libraries.  You can use rpm -q to see if you have a package, or
rpm -qa |grep <package name> or rpm -qa |less.

> 
> Then I downloaded  gccfrom one of GNU ftp sites. I downloaded
> gcc-2.1-2.2.1.diff.gz
> This is a zip file . How should I install this version ,? Please let
> me know the step by step procedure of installation

This is not a version of gcc at all.  If you have the source of gcc-2.1
installed, you can use this file to update ("patch") it to gcc-2.2.1.
Both these versions of gcc are thoroughly obsolete.  There is nothing
wrong with the gcc you have.  It just needs libraries and header files
to work with.
> 
> I am a novice to linux OS.
> 
> Thanking You
> Praveen

Lawson
          >< Microsoft free environment

This mail client runs on Wine.  Your mileage may vary.





___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month!
Try Juno Web: http://dl.www.juno.com/dynoget/tagj.

Reply via email to