Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Re: 2GB file problem

On Wed, 5 May 2004, [iso-8859-1] Éric Giroux wrote:

> 
> Steve,
> 
> Check http://www.unidata.ucar.edu/packages/netcdf/faq.html#lfs
> 
> You have to compile your netCDF with support for large files.
> 
> FYI, In my system, I use the following flags:
> 
> 
> -----------------------
> setenv F90 ""
> 
> setenv CC /usr/bin/gcc
> setenv CFLAGS '-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -O'
> 
> setenv CXX /usr/bin/g++
> setenv CPPFLAGS '-D_FILE_OFFSET_BITS=64 -DNDEBUG -DpgiFortran'
> 
> setenv FC /usr/local/intel/compiler70/ia32/bin/ifc
> setenv FLIBS '-Vaxlib'
> setenv FFLAGS '-O -mp -cm -w95'
> -----------------------


Thanks very much ÉRic. It is working now.  I should have looked further! I
looked through the Linux section but somehow missed the Large File part
of it.  Sorry to waste peoples time.  

BTW the settings that I used for the Portland Group compilers is (using
the /bin/sh shell) :

export CPP="/scratch/apps/pgi/linux86/bin/pgcc -E"
export CPPFLAGS="-DNDEBUG -DpgiFortran"
export CC=/scratch/apps/pgi/linux86/bin/pgcc
export CXX=""
export FC=/scratch/apps/pgi/linux86/bin/pgf77
export F90=/scratch/apps/pgi/linux86/bin/pgf90
export CFLAGS="-O -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"

Thanks again,

Steve



 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690