Compiling Fortran netCDF programs with all available libraries
问题 first of all I've read this topic but I can't compile my code. Compiling Fortran netCDF programs on Ubuntu I am on UBUNTU 14.04 and compiling a fortran program that uses NetCDF. I have compilation error like this: terrain.f:(.text+0x17efd): undefined reference to 'ncopn_' terrain.f:(.text+0x18111): undefined reference to 'ncopn_' terrain.f:(.text+0x187cc): undefined reference to 'ncclos_' terrain.f:(.text+0x187ea): undefined reference to 'ncclos_' Definitely it says I have not netcdf fortran