可執行檔案unipost.exe編譯程序中沒有報錯,在運行程序遇到以下錯誤:/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_
請教大家,這種錯誤是怎么引起的呢?編譯用到的源檔案太多,不知道該放哪個上來,先行謝過。
在官網的FQA中看到:
Issue 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 looking 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 might be a second library, libnetcdff.a . Check for this and use
# if available
if [ -f "$NETCDF/lib/libnetcdff.a" -o -f "$NETCDF/lib/libnetcdff.so" ] ; then
USENETCDFF="-lnetcdff"
fi
and then - USENETCDFF is used later to define the libs to include.
我理解是在configure中修改上述“if”部分內容,但在configure中沒有相應的內容。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/124945.html
上一篇:Python實作鬧鐘功能
