[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #YVX-222856]: building GOTM with netCDF
- Subject: [netCDF #YVX-222856]: building GOTM with netCDF
- Date: Fri, 19 Feb 2010 16:15:14 -0700
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