[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20000726: pgf90 code not finding "nf_open_" but "nf_open__" exists



Xingxiu,

> To: address@hidden
> From: Xingxiu Deng <address@hidden>
> Subject: inquiry about netcdf
> Organization: UCAR/Unidata
> Keywords: 200007262000.e6QK0FT08657

The above message contained the following:

>       I encounter one problem when I use the netcdf lib on our new
> Beowulf computer (PC). When I compile my Fortran programs using pgf90, the
> error messages are as follows:
> 
>       undefined reference to 'nf_open_', 'nf_strerror_', etc.
> 
> The following lines are some info from the netcdf lib (libnetcdf.a) of our
> computer system.
> 
> $ cd /usr/local/lib
> $ nm -g libnetcdf.a | grep nf_
> 00000de4 T nf_get_att_double__
> 00000624 T nf_get_att_int1__
> 00000794 T nf__enddef_
> 000005f8 T nf__open_
> 000007fc T nf_abort__
> 00000824 T nf_close__
> 000002fc T nf_create__
> 0000084c T nf_delete__
> 0000076c T nf_enddef__
> 00000504 T nf_open__
> 
> The type of our system:  Linux Mandrake 7.0
>               $ uname -a
>               Linux io1.io.beowulf 2.2.14-15mdksmp #1 SMP Tue Jan 4 21:36:33
>               CET 2000 i686 unknown
>       Would you please help me to figure it out?
>       My best regards,
> 
> Sincerely,
> 
> Xingxiu

Your netCDF library should have been built with the C macro "pgiFortran"
defined (rather than "f2cFortran").  Was it?

Regards,
Steve Emmerson   <http://www.unidata.ucar.edu>