[Met_help] Problem when compiling MET

Xiaqiong Zhou xiaqiong at hawaii.edu
Wed May 28 11:12:48 MDT 2008


Hello, MET:
 I have a problem when compiling MET.
 I am using x86-64 GNU/linux with f77/gcc.  
The error is from read_grib.c. Please see the following information. Is it a problem due to  netcdf  library? I use f77 to install netcdf.
 Thanks
 Kate
 gcc read_grib.cc -g -Wall -Wshadow -static  -c -I.. -I/usbdisk4jylee/xiaqiong/lib/gsl-1.11
 In file included from ../vx_met_util/vx_met_util.h:21,
                  from read_grib.cc:20:
 ../vx_met_util/read_pcp_combine_netcdf.h:16:21: netcdf.hh: No such file or directory
 In file included from ../vx_met_util/vx_met_util.h:21,
                  from read_grib.cc:20:
 ../vx_met_util/read_pcp_combine_netcdf.h:25: warning: `read_pcp_combine_netcdf' initialized and declared `extern'
 ../vx_met_util/read_pcp_combine_netcdf.h:25: error: variable or field `read_pcp_combine_netcdf' declared void
 ../vx_met_util/read_pcp_combine_netcdf.h:25: error: `NcFile' was not declared in this scope
 ../vx_met_util/read_pcp_combine_netcdf.h:25: error: expected primary-expression before ',' token
 ../vx_met_util/read_pcp_combine_netcdf.h:25: error: expected primary-expression before '&' token
 ../vx_met_util/read_pcp_combine_netcdf.h:25: error: expected primary-expression before ',' token
 ../vx_met_util/read_pcp_combine_netcdf.h:25: error: expected primary-expression before '&' token
 ../vx_met_util/read_pcp_combine_netcdf.h:25: error: expected primary-expression before ',' token
 ../vx_met_util/read_pcp_combine_netcdf.h:25: error: expected primary-expression before "int"
 ../vx_met_util/read_pcp_combine_netcdf.h:26: error: expected primary-expression before '&' token
 ../vx_met_util/read_pcp_combine_netcdf.h:26: error: expected primary-expression before ',' token
 ../vx_met_util/read_pcp_combine_netcdf.h:26: error: expected primary-expression before '&' token
 ../vx_met_util/read_pcp_combine_netcdf.h:26: error: expected primary-expression before ',' token
 ../vx_met_util/read_pcp_combine_netcdf.h:27: error: expected primary-expression before '&' token
 ../vx_met_util/read_pcp_combine_netcdf.h:27: error: expected primary-expression before ')' token
 ../vx_met_util/read_pcp_combine_netcdf.h:27: error: initializer expression list treated as compound expression
 ../vx_wrfdata/vx_wrfdata.h:41: warning: 'wrfdata_magic' defined but not used
 ../vx_wrfdata/vx_wrfdata.h:64: warning: 'thresh_type_str' defined but not used
 ../vx_wrfdata/vx_wrfdata.h:85: warning: 'step_direction_str' defined but not used
 ../vx_met_util/constants.h:23: warning: 'na_str' defined but not used
 ../vx_met_util/constants.h:26: warning: 'all_msg_typ_str' defined but not used
 ../vx_met_util/constants.h:30: warning: 'anyair_str' defined but not used
 ../vx_met_util/constants.h:31: warning: 'anyair_msg_typ_str' defined but not used
 ../vx_met_util/constants.h:32: warning: 'anysfc_str' defined but not used
 ../vx_met_util/constants.h:33: warning: 'anysfc_msg_typ_str' defined but not used
 ../vx_met_util/constants.h:34: warning: 'onlysf_str' defined but not used
 ../vx_met_util/constants.h:35: warning: 'onlysf_msg_typ_str' defined but not used
 ../vx_met_util/constants.h:38: warning: 'all_interp_mthd_str' defined but not used
 ../vx_met_util/constants.h:49: warning: 'mthd_str' defined but not used
 ../vx_met_util/met_stats.h:20: warning: 'hdr_fmt_str' defined but not used
 ../vx_grib_classes/grib_strings.h:20: warning: 'missing_str' defined but not used
 ../vx_grib_classes/grib_strings.h:62: warning: 'grib_code_list' defined but not used
 ../vx_grib_classes/grib_strings.h:94: warning: 'grib_code_list_str' defined but not used
 ../vx_grib_classes/grib_strings.h:391: warning: 'grib_level_list_str' defined but not used
 make[3]: *** [read_grib.o] Error 1
 make[2]: *** [vx_met_util_all] Error 2
 make[1]: *** [libs] Error 2
 make: *** [all] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/met_help/attachments/20080528/f20c5f7d/attachment.html


More information about the Met_help mailing list