[Wrf-users] Compiling Error

Kudsy, M mkudsy at gmail.com
Fri May 9 17:05:56 MDT 2014


I read somewhere in the internet that starting from version 4, every time
you want to use libnetcdf, you 'must' also call libnetcdff. I experienced
often if error messages such as
... undefined reference nf_ ... (pay attention to nf_)
that indicates that libnetcdff is needed for compilation..
On May 10, 2014 1:08 AM, "Krishna Kishore" <osurikishore at gmail.com> wrote:

>  [image: Boxbe] <https://www.boxbe.com/overview> This message is eligible
> for Automatic Cleanup! (osurikishore at gmail.com) Add cleanup rule<https://www.boxbe.com/popup?url=https%3A%2F%2Fwww.boxbe.com%2Fcleanup%3Ftoken%3DgyjO6I6QGxTVgX2vv4Q819N2vf7zfjy4pdG9uCeybmdefFi5WcByngF74bgkp9CM1QNXIVyxaSJkztRsT7PqjFzbKR0sdCYv6V4jyeVComgzwxIB23O3xwGmQmttZL1J80LrWANF4RThOZes61bW1A%253D%253D%26key%3DNl2xUW3MsxEKWq9e0OVSfWrXTFaTmQPF0sbXLP76HF8%253D&tc_serial=17194790506&tc_rand=2095520458&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>| More
> info<http://blog.boxbe.com/general/boxbe-automatic-cleanup?tc_serial=17194790506&tc_rand=2095520458&utm_source=stf&utm_medium=email&utm_campaign=ANNO_CLEANUP_ADD&utm_content=001>
>
> it is a fortran-netcdf library.
> https://www.unidata.ucar.edu/downloads/netcdf/netcdf-fortran/index.jsp
> See this link.
> Good luck
>
> *Krishna*
>
>
>
> On Fri, May 9, 2014 at 10:48 AM, luis del castillo <
> luis.delcastillo at cathalac.int> wrote:
>
>>  Thanks Dmitry but I get this
>>
>> /usr/bin/ld: cannot find –lnetcdff
>>
>>
>>
>> I try to google it but I cant find nothing about a library lnetcdff
>> instead I found a lot about lnetcdf as library.
>>
>>
>>
>> Any Ideas.
>>
>>
>>
>> regards
>>
>>
>>
>> *From:* Dmitry N. Mikushin [mailto:maemarcus at gmail.com]
>> *Sent:* viernes, 09 de mayo de 2014 9:41 a. m.
>> *To:* luis del castillo
>> *Cc:* wrf-users at ucar.edu
>> *Subject:* Re: [Wrf-users] Compiling Error
>>
>>
>>
>> mpif90 -f90=pgf90 -o wrf.exe  -O3  -w -Mfree -byteswapio     wrf.o
>> ../main/module_wrf_top.o libwrflib.a
>> /home/wrf/WRF/WRFV3/external/fftpack/fftpack5/libfftpack.a
>> /home/wrf/WRF/WRFV3/external/io_grib1/libio_grib1.a
>> /home/wrf/WRF/WRFV3/external/io_grib_share/libio_grib_share.a
>> /home/wrf/WRF/WRFV3/external/io_int/libwrfio_int.a
>> -L/home/wrf/WRF/WRFV3/external/esmf_time_f90 -lesmf_time
>> /home/wrf/WRF/WRFV3/external/RSL_LITE/librsl_lite.a
>> /home/wrf/WRF/WRFV3/frame/module_internal_header_util.o
>> /home/wrf/WRF/WRFV3/frame/pack_utils.o
>> -L/home/wrf/WRF/WRFV3/external/io_netcdf -lwrfio_nf
>> -L/usr/local/netcdf/4.3.0/pgi/13.5/lib  -lnetcdf
>> libwrflib.a(track_driver.o): In function `write_track_':
>> /home/wrf/WRF/WRFV3/share/./track_driver.f90:288: undefined reference to
>> `nf_create_'
>>
>> You're linking libnetcdf, which is a C version of NetCDF, while WRF needs
>> Fortran version - libnetcdff. Instead of -lnetcdf, try to do -lnetcdff
>> -lnetcdf.
>>
>> - D.
>>
>>
>>
>> 2014-05-08 23:31 GMT+02:00 luis del castillo <
>> luis.delcastillo at cathalac.int>:
>>
>>  Good afternoon people… I am trying to compile the WRF 3.5.1 using
>> netcdf4.3.0 and fortran 2013. In this email you can find two files one with
>> all the environmental variables and the second one has all the compiling
>> log.
>>
>>
>>
>> Thanks
>>
>> Luis Alejandro Del Castillo Riley
>>
>> CATHALAC
>>
>>
>>
>>
>> _______________________________________________
>> Wrf-users mailing list
>> Wrf-users at ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/wrf-users
>>
>>
>>
>> _______________________________________________
>> Wrf-users mailing list
>> Wrf-users at ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/wrf-users
>>
>>
>
> _______________________________________________
> Wrf-users mailing list
> Wrf-users at ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/wrf-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/wrf-users/attachments/20140510/7e1236a8/attachment.html 


More information about the Wrf-users mailing list