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

[netCDF #KHB-927688]: Compiling error



Abheera,

> Just to let you know, I fixed the problem, the library and include file
> calls pathnames I was using were to an old netcdf, once I changed to a
> newer version things have been working well.

Great, glad to hear it, and thanks for letting us know so we can close
the ticket.

--Russ

> On Thu, Jul 5, 2012 at 2:14 PM, abheera hazra <address@hidden>wrote:
> 
> > Hi Russ,
> >
> > Thanks a lot for the reply, I don't have the technical skill or knowledge
> > to do most of what you asked me to check, but I anyway went ahead and did
> > the set with these commands:
> >
> > lt_cv_ld_force_load=no
> > LDFLAGS=-L/'WHERE_HDF5_IS_INSTALLED'/lib
> > CPPFLAGS=-I/'WHERE_HDF5_IS_INSTALLED'/include
> >  and compiled the codes with and without the linkings, it still gave me
> > the same error.
> >
> > I was unsure where to look for the -l'netcdff'/'netcdf' files, so, I
> > looked into the /usr/local/netcdf-4.1.1-rc2/lib/ and saw it had the
> > following files:
> > -rw-r--r-- 1 root root 5682376 Mar 31  2010 libnetcdf.a
> > -rw-r--r-- 1 root root  859324 Mar 31  2010 libnetcdf_c++.a
> > -rwxr-xr-x 1 root root    1206 Mar 31  2010 libnetcdf_c++.la
> > -rwxr-xr-x 1 root root    1156 Mar 31  2010 libnetcdf.la
> > drwxr-xr-x 2 root root    4096 Mar 31  2010 pkgconfig
> >
> >
> > And,  would you be able to guide me to where could I be looking for the
> > .mod module header for the Fortran API?
> > I looked into /usr/local/netcdf-4.1.1-rc2/include/
> > and found the following files:
> > -rw-r--r-- 1 root root  10123 Mar 31  2010 ncvalues.h
> > -rw-r--r-- 1 root root  18918 Mar 31  2010 netcdfcpp.h
> > -rw-r--r-- 1 root root  56774 Mar 31  2010 netcdf.h
> > -rw-r--r-- 1 root root     23 Mar 31  2010 netcdf.hh
> > -rw-r--r-- 1 root root  59387 Mar 31  2010 netcdf.inc
> > -rw-r--r-- 1 root root 327751 Mar 31  2010 netcdf.mod
> > -rw-r--r-- 1 root root   1510 Mar 31  2010 typesizes.mod
> >
> > and looked into the netcdf.mod and couldn't make any sense.
> >
> > The problem is the software is not installed on my laptop, these are all
> > on my home-institute server.
> >
> > Also, since I have access to the NCAR server - glade , would you happen to
> > know what compilation pathnames for the linking of the 'include' and
> > 'library' I might have to use?
> >
> > I am also at mesa lab, so incase someone/anyone that might have some time
> > to spare in the middle of the workshop or if not attending the workshop, to
> > show me some of these things, would be great, if not, I guess I wait till
> > the week after. I am actually a little desperate since I need to get some
> > of my NCAR-model runs done before this month and for it I need to be able
> > to read from and write to certain netcdf files.
> >
> > Thank you very much again,
> > Best,
> > Abheera
> >
> >
> >
> > address@hidden> wrote:
> >
> >> Hi Abheera,
> >>
> >> Unfortunately, we are in the process of moving our offices from FLA (the
> >> Foothills
> >> Anthes Building, 3375 Mitchell Lane) to FL4 (3300 Mitchell Lane) today
> >> and tomorrow.
> >> Both buildings are closed to us and everyone else except the movers, both
> >> today and
> >> tomorrow (July 5-6).  Next week is also problematic, as most of the staff
> >> are attending
> >> the triennial Unidata Users Workshop at the Mes Lab (in the main
> >> auditorium) from
> >> Monday morning through Friday neen (July 13).
> >>
> >> The first thing I would check is whether you are using the -I compiler
> >> option to specify
> >> where the .mod module header for the Fortran API is installed.
> >>
> >> If you are using a MacOS-X platform, also make sure it was configured
> >> with the
> >> environment variable
> >>
> >>   lt_cv_ld_force_load=no
> >>
> >> set, as documented here:
> >>
> >>
> >> http://www.unidata.ucar.edu/software/netcdf/docs/known_problems.html#intel-fortran-macosx
> >>
> >> Another thing I would check is whether you have to link to a separate
> >> Fortran library
> >> with "-lnetcdff" followed by linking to the netCDF C library with
> >> "-lnetcdf".
> >>
> >> --Russ
> >>
> >> Russ Rew                                         UCAR Unidata Program
> >> address@hidden                      http://www.unidata.ucar.edu
> >>
> >>
> >>
> >> Ticket Details
> >> ===================
> >> Ticket ID: KHB-927688
> >> Department: Support netCDF
> >> Priority: Normal
> >> Status: Closed
> >>
> >>
> >
> 
> 

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: KHB-927688
Department: Support netCDF
Priority: Normal
Status: Closed