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

[netCDF #YVX-222856]: building GOTM with netCDF



Hi Sumit,

> Hi, When I try to build GOTM with netCDF that has been built with
> netcdf-4 and HDF5, I get the errors in the attached file.
> 
> The command is:
> 
> mpif90 -o gotm_prod_GFORTRAN ./gotm/main.o  -DGFORTRAN -DNETCDF_FMT
> -DSEAGRASS -DBIO -DPRODUCTION  -DFORTRAN95 -DREAL_4B=real\(4\) -O3
> -M /home/sumit/GOTM/gotm-4.0.0/modules/GFORTRAN
> -I/home/sumit/netCDF/include -I/usr/local/include
> -I/home/sumit/GOTM/gotm-4.0.0/include
> -I/home/sumit/GOTM/gotm-4.0.0/modules/GFORTRAN -ffree-form -Wall
> -std=f95 -pedantic -L/home/sumit/GOTM/gotm-4.0.0/lib/GFORTRAN
> -lgotm_prod  -lseagrass_prod -lbio_prod -lairsea_prod -lmeanflow_prod
> -lturbulence_prod -lobservations_prod -loutput_prod
> -lutil_prod  /home/sumit/netCDF/lib/libnetcdf.a >& error.log
> 
> 
> Any suggestions or insights into correcting this error?

It looks like you need to add flags to search the HDF5 library after 
libnetcdf.a.

Try running nc-config --flibs and see what libraries need to be included
with a Fortran compile.

--Russ

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



Ticket Details
===================
Ticket ID: YVX-222856
Department: Support netCDF
Priority: High
Status: Closed


NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.