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

Re: netcdf and fortran



>From: address@hidden (Fu Zhufeng)
>Organization: SUNY Albany
>Keywords: 199408241645.AA26832 netCDF Fortran jackets

Fu,

>I have installed netcdf-232pl2 on my SUN4 work station.
>I have done "make all, test, install, clean".

OK.

>All seems OK. There comes a directory 'lib' under my main directory, which
>include a file libnetcdf.a.

Good.

>Is this the lib I shall link to when I make f77 of my cdf program? I did that,
>and the answer to f77 was
>ld: Undefined symbol
>   _ncopn_
>   _ncclos_
>Compilation failed
>
>How shall I compile my fortran program after the netcdf232pl2 has been 
>installed?

Please look at the makefile in the fortran subdirectory to get more information.
I can tell you that you have to link against libnetcdf.a AND include the
objects from the Fortran jackets file 'jackets.o'.

Tom Yoksas