[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20030113: netCDF library link problem: missing f77 interface
- Subject: 20030113: netCDF library link problem: missing f77 interface
- Date: Mon, 13 Jan 2003 12:38:54 -0700
Ashish,
>Date: Mon, 13 Jan 2003 13:53:24 -0500
>From: ashish arora <address@hidden>
>Organization: University of Kent
>To: Steve Emmerson <address@hidden>
>Subject: RE: 20030110: netCDF library link problem: missing f77 interface
The above message contained the following:
> Do I need to set the environment variable in the MakeFile in the src/
> i.e. top level source directory?
No. Set the environment variables in your user-shell prior to executing
the "configure" script. How this is done depends on your user shell:
For standard UNIX shells (e.g. "sh", "ksh", "bash"):
make distclean
...
export CC=/usr/bin/gcc
export CPPFLAGS=-Df2cFortran
export FC=/usr/bin/f77
export FFLAGS=-Wno-globals
export CXX=/usr/bin/g++
./configure >configure.log 2>&1
For csh-like shells (e.g. "csh", "tcsh"):
make distclean
...
setenv CC /usr/bin/gcc
setenv CPPFLAGS -Df2cFortran
setenv FC /usr/bin/f77
setenv FFLAGS -Wno-globals
setenv CXX /usr/bin/g++
./configure >&! configure.log
Note that you should execute the command "make distclean" before
executing the "configure" script. Don't worry if this command fails or
even fails to execute.
Regards,
Steve Emmerson <http://www.unidata.ucar.edu>