[Met_help] Problem when compiling MET

John Halley Gotway johnhg at rap.ucar.edu
Wed May 28 12:20:17 MDT 2008


Xiaqiong,

I believe that you're encountering one of the issues already included on the "known issue" page.

Please take a look here: http://www.dtcenter.org/met/users/support/known_issues/METv1.0/index.php
For the line: "Compilation Error in the vx_met_util Library"

And update the version of the file METv1.0/lib/vx_met_util/Makefile with the one posted on the known issues page.

Please let me know if you run into any more problems.

Thanks,
John Halley-Gotway
johnhg at ucar.edu

Xiaqiong Zhou wrote:
> 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
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Met_help mailing list
> Met_help at mailman.ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/met_help


More information about the Met_help mailing list