RE: Large file issue

Ed,

I've found that replacing the following code in netcdf.h (version
3.6.1):

  #if defined(DLL_NETCDF) /* define when library is a DLL */
  #  if defined(DLL_EXPORT) /* define when building the library */
  #   define MSC_EXTRA __declspec(dllexport)
  #  else
  #   define MSC_EXTRA __declspec(dllimport)
  #  endif
  #include <io.h>
  #define lseek _lseeki64
  #define off_t __int64
  #else
  #define MSC_EXTRA
  #endif        /* defined(DLL_NETCDF) */ 

With this:

  #if defined(DLL_NETCDF) /* define when library is a DLL */
  #  if defined(DLL_EXPORT) /* define when building the library */
  #   define MSC_EXTRA __declspec(dllexport)
  #  else
  #   define MSC_EXTRA __declspec(dllimport)
  #  endif
  #include <io.h>
  #define lseek _lseeki64
  #define off_t __int64
  #define stat __stat64
  #define fstat _fstat64
  #else
  #define MSC_EXTRA
  #endif        /* defined(DLL_NETCDF) */

And then re-compiling allows me to open all the files on my Windows
system.  Don't know how helpful that is (ie. if it fixes one problem
only to create another that I'm not aware of), but I thought I'd pass it
along.

Thanks.

Simon


-----Original Message-----
From: Ed Hartnett [mailto:ed@xxxxxxxxxxxxxxxx] 
Sent: Wednesday, January 17, 2007 1:28 PM
To: Hathaway, Simon
Cc: netcdfgroup@xxxxxxxxxxxxxxxx
Subject: Re: Large file issue

"Hathaway, Simon" <shathaw@xxxxxxxxxx> writes:

> Ed,
>
> Thanks for the reply.  In answer to your questions: 
>
> The release that worked was 3.6.1-beta1.  I got it from the pre-built 
> binaries page 
> (http://www.unidata.ucar.edu/software/netcdf/binaries.html).  The 
> 3.6.1 full release did not work.  I have not yet tried the 3.6.2-beta
release.
> Is there a pre-built 3.6.2-beta release available somewhere?
>
> As for the DLL_NETCDF symbol, it is being defined.
>
> Thanks for your help.
>
> Simon
>

OK, please stand by, I am testing the latest 3.6.2 beta on windows this
week. I will make sure large files are tested and working before I
release it.

Thanks,

Ed
--
Ed Hartnett  -- ed@xxxxxxxxxxxxxxxx




==============================================================================
To unsubscribe netcdfgroup, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================


  • 2007 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: