Home > other >  Runtime error: undefined symbol: ext_gr2_write_field_
Runtime error: undefined symbol: ext_gr2_write_field_

Time:10-11

Exe executable file unipost. There is no error in the process of compilation, the operation process encountered the following error:/BIGDATA1/HWRF/hwrfrun sorc/UPP/bin/unipost. Exe: symbol lookup error:/BIGDATA1/HWRF/hwrfrun sorc/UPP/bin/unipost. Exe: undefined symbol: ext_gr2_write_field_
Consult everybody, how did this error caused by? Used to compile the source file is too much, don't know which one to put up, first thanked,

See in FQA the club's official website:
Armed with NetCDF installation path: - lnetcdff lib missing
Problem: Error:
./WRFV3/external/io_netcdf/./wrf_io. F: 1578: undefined reference to ` nf_open_ '
./WRFV3/external/io_netcdf/./wrf_io. F: 1585: undefined reference to ` nf_inq_varid_ '
./WRFV3/external/io_netcdf/./wrf_io. F: 1592: undefined reference to ` nf_inq_var_ '
The trailing "_" means it is & a for The Fortran versions of these and not finding them.

Solution: WRF has this code bit in it 's "configure" script to handle this:
# for 3.6.2 and greater there took a be a second library, libnetcdff. A. Check for this and use the
# if available
If [-f "$NETCDF/lib/libnetcdff. A" - o f "$NETCDF/lib/libnetcdff. So"]. Then
USENETCDFF="- lnetcdff"
Fi
And then - USENETCDFF is 2 later to define the libs to include.
I understand it is changed in the configure the "if" part, but there is no corresponding content in the configure,
  • Related