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 Biranchi. > I built with exporting environment variables > > CC=gcc > FC=gfortran > F90=f90 > CXX=g++ > CFLAGS="-o" > CPPFLAGS="-DNDEBUG" > FFLAGS="-o" > F90FLAGS="-o" > CXXFLAGS="-o" > > > after configure command i saw an error. > errors are displaying as: > c compiler cannot create executables. > please find some solution and suggest. From > configure:4489: checking whether the C compiler works > configure:4511: gcc -o -DNDEBUG conftest.c >&5 > configure:4515: $? = 0 > configure:4553: result: no > configure: failed program was: > | /* confdefs.h */ > | #define PACKAGE_NAME "netCDF" > | #define PACKAGE_TARNAME "netcdf" > | #define PACKAGE_VERSION "4.1.3" > | #define PACKAGE_STRING "netCDF 4.1.3" > | #define PACKAGE_BUGREPORT "address@hidden" > | #define PACKAGE_URL "" > | #define PACKAGE "netcdf" > | #define VERSION "4.1.3" > | #define NCIO_MINBLOCKSIZE 256 > | #define USE_FSYNC 1 > | #define DEFAULT_CHUNK_SIZE 4194304 > | #define MAX_DEFAULT_CACHE_SIZE 67108864 > | #define DEFAULT_CHUNKS_IN_CACHE 10 > | #define CHUNK_CACHE_SIZE 4194304 > | #define CHUNK_CACHE_NELEMS 1009 > | #define CHUNK_CACHE_PREEMPTION 0.75 > | /* end confdefs.h. */ > | > | int > | main () > | { > | > | ; > | return 0; > | } > configure:4558: error: in `/home/serc/Downloads/netcdf-4.1.3': > configure:4560: error: C compiler cannot create executables > See `config.log' for more details we can't tell what the problem with the C compiler or development environment is. Can you please send the config.log file that was generated when the configure script was run? Thanks. --Russ Russ Rew UCAR Unidata Program address@hidden http://www.unidata.ucar.edu Ticket Details =================== Ticket ID: JUD-333065 Department: Support netCDF Priority: Normal Status: Closed