[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NetCDF and DDI -- file format
- Subject: Re: NetCDF and DDI -- file format
- Date: Thu, 29 Jun 1995 09:33:50 -0600
Mike,
> Hello, again. I typed in the following commands in order to
> create a NetCDF library ( with a f77 fortran compiler ) :
> configure --prefix=/home3/notaro/netcdf-232pl2
> setenv FC f77
> ./configure --prefix=/home3/notaro/netcdf-232pl2
> make all
> make test
> make install
> make clean
>
> Shouldn't this create the library?
Yes, that looks fine. If this executed OK and didn't produce any error
messages, the library should have been created and installed.
> In the program you sent me, I changed the line:
> INCLUDE '/usr/local/include/netcdf.inc'
> to:
> INCLUDE '/home3/notaro/netcdf-232pl2/include/netcdf.inc'
>
> However, when I compile this program, using f77 program.f -o program, I get
> a compilation failure with it saying:
> Undefined symbol
> _ncclos_
> _ncendf_
> _ncvdef_
> _ncvpt_
> _nccre_
>
> Does this mean the library was never installed? What should I do?
No, you just need to tell f77 where to find the installed library, using
something like:
f77 program.f -o program -L/home3/notaro/netcdf-232pl2 -lnetcdf
If you want it to find the include file, you should probably also add the
flag
-I /home3/notaro/netcdf-232pl2/include
to tell f77 where to look for it if it's not in the current working
directory, although some platforms have a different way of specifying
include directory search paths for Fortran compilers.
--Russ