[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 980629: compilation error; Linux: iostream.h not found



Tim,

>Date: Mon, 29 Jun 98 14:55:53 -0400
>From: address@hidden
>Organization: .
>To: Steve Emmerson <address@hidden>
>Subject: Re: 980629: compilation error; Linux: iostream.h not found 
>Keywords: 199806291623.KAA19742

In the above message, you wrote:

> Here is what I have for c++:
> 
> %matins apropos c++
> 
> g++ (1)              - GNU project C++ Compiler
> gcc, g++ (1)         - GNU project C and C++ Compiler (v2.7)
> c++filt (1)          - demangle C++ symbols
> c2lout (1)           - convert C and C++ source code into Lout
> cdecl, c++decl (1)   - Compose C and C++ type declarations
> f2c (1)              - Convert Fortran 77 to C or C++ . " f^2c changed to f2c 
> in the previous line for the
> benefit of . " people on systems (e.g. Sun systems) whose makewhatis cannot . 
> " cope with troff formatting
> commands.
> g++ (1)              - GNU project C++ Compiler
> gcc, g++ (1)         - GNU project C and C++ Compiler (v2.7)
> 
> 
> -----------
> 
> G++(1)                      GNU Tools                      G++(1)
> 
> NAME
>        g++ - GNU project C++ Compiler
> 
> SYNOPSIS
>        g++ [option | filename ]...
> 
> DESCRIPTION
>        The  C and C++ compilers are integrated; g++ is a script to call gcc 
> with options to rec-
>        ognize C++.
> 
> ------------
> matins%cd /usr/local/bin
> matins%lss
> total 4868
> drwxrwxr-x   2 local    local        1024 Mar 26 13:34 ./
> drwxr-xr-x  18 local    local        1024 May 14 11:39 ../
> -rwxr-xr-x   1 root     root         6358 Jan 12 16:24 build-guile*
> -rwxr-xr-x   1 root     root        30140 Jan 12 15:12 buildhash*
> -rwxr-xr-x   2 local    local       95668 Dec 15  1997 c++*
> -rwxr-xr-x   1 local    local         542 Apr 16  1997 despecial*
> -rwxr-xr-x   1 root     root         9849 Jan 12 15:12 findaffix*
> -rwxr-xr-x   2 local    local       95668 Dec 15  1997 g++*
> -rwxr-xr-x   1 local    local      112892 Dec 15  1997 g77*
> -rwxr-xr-x   2 local    local      148592 Dec 15  1997 gcc*
> ...
> ------------------

What C and C++ compilers do you have in "/usr/bin"?

> There isn't a man page for c++.  I don't know the relationship between
> c++ and g++ above (I thought one might be a symbolic link to the
> other, but it doesn't appear so.)

They are hard (not symbolic) links to the same file.

> 
> Do you think I might get different behavior if I changed
> 
> FC=g77
> CFLAGS=-O
> CPPFLAGS=-Df2cFortran -DNDEBUG
> FFLAGS=-O -ff2c
> CXX=c++
> 
> to have CXX=g++?

I don't know.  I want to find a compatible set of C and C++ compilers
first.

> By the way, I'm implementing netCDF and finding the html file 
> documentation to be well written.

Thanks!

--------
Steve Emmerson   <http://www.unidata.ucar.edu>