This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Hi Sandeep, To compile the netCDF libraries as shared, you need to specify "--enable-shared" as a flag to the "configure" script when building netCDF from source. An example of the output from the build process you should expect on Linux when building 3.6.2 shared libraries is here: http://www.unidata.ucar.edu/software/netcdf/builds/3_6_2/nc3_t4_out.txt The configure script will determine the flags needed for building shared libraries, so you should not have to specify CFLAGS="-fPIC" as an environment variable. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: KCB-778033 Department: Support netCDF Priority: Normal Status: Closed