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