[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 16:01:18 -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:

> My .cshrc path had /usr/local/bin ahead of /usr/bin,
> 
> and now that I've switched it, I get
> 
> matins%which cc
> /usr/bin/cc
> matins%which c++
> /usr/bin/c++
> matins%which g77
> /usr/local/bin/g77
> matins%which g++
> /usr/bin/g++

The above still doesn't look like a compatible set of compilers because
the C and C++ compilers are in "/usr/bin" but the Fortran compiler is in
"/usr/local/bin".

Do you have to use g77?  I know how to build the package using fort77
(which uses f2c).

> 
> Now, with
> 
> FC=g77
> CFLAGS=-O
> CPPFLAGS=-Df2cFortran -DNDEBUG
> FFLAGS=-O -ff2c
> CXX=g++
> 
> and "make distclean",
> 
> configure >& configure.log yields
> 
> matins%more configure.log
> creating cache ./config.cache
> checking for m4... m4
> checking for xlc... no
> checking for c89... no
> checking for acc... no
> checking for cc... cc
> checking C compiler... works
> checking how to make dependencies... false
> checking for g++... g++
> checking C++ compiler "g++"... works
> checking how to run the C preprocessor... cc -E
> checking user-defined Fortran compiler "g77"... works
> checking for Fortran .F compiler...
> checking if Fortran compiler handles *.F files... no
> checking for Fortran preprocessor... cc -E
> checking for C-equivalent to Fortran routine "SUB"... nm: conftest.o: No such 
> file or directory
> configure: error: not found

The above indicates an incompatibility between the Fortran compiler and
the C and C++ compilers.  The reason can be found near the end of the file
"config.log".

In order to find a compatible set of compilers, would you please send me
the output from the following commands:

    ls -li /usr/bin/cc /usr/bin/gcc /usr/bin/c89 \
        /usr/bin/c++ /usr/bin/CC /usr/bin/C++ /usr/bin/g++ \
        /usr/bin/f77 /usr/bin/g77

    ls -li /usr/local/bin/cc /usr/local/bin/gcc /usr/local/bin/c89 \
        /usr/local/bin/c++ /usr/local/bin/CC /usr/local/bin/C++ \
            /usr/local/bin/g++ \
        /usr/local/bin/f77 /usr/local/bin/g77

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