address@hidden wrote:
So when I see that error, is it safe to assume
that libnetcdf.so should live in the directory following the -L?
The flag -L points to libraries which are staticaly linked to your
application. Those libraries are usually named *.a. Dynamically linked
libraries (*.so) are linked with your application at runtime and can be
pointed to by the environment variable LD_LIBRARY_PATH.
If you have a file libnetcdf.a and that file contains the function
nf_close_ it might help to put that .a file in a directory pointed to with
the switch -L.