Error - undefined reference to BUFR libraries

Submitted by aviparde07 on Wed, 10/28/2020 - 06:35

Dear Support,

I'm getting an error in encoding the sample Fortran code (encode_temperature.f90). The error is given below

encode_temperature.o: In function `MAIN__':
encode_temperature.f90:(.text+0x108): undefined reference to `openbf_'
encode_temperature.f90:(.text+0x123): undefined reference to `openmb_'
encode_temperature.f90:(.text+0x159): undefined reference to `ufbint_'
encode_temperature.f90:(.text+0x169): undefined reference to `writsb_'
encode_temperature.f90:(.text+0x175): undefined reference to `closmg_'
encode_temperature.f90:(.text+0x181): undefined reference to `closbf_'

 

I have copied all BUFR libraries in same folder of Fortran code and used following command:

$ ifort -o encode.exe encode_temperature.o -L –lbufr_i4r8

But still it shows an error.

Any suggestion will helpful...!

Thank you in advance.

 

 

Hi,

Though this is a very late reply, however, I think it is posted on the wrong forum. This is a GSI query. Hopefully you got help from other sources. 

Thanks

Biswas