|
|
|||
|
||||
Next: Using DLL, Previous: Installing DLL, Up: Building on Windows
The most recent releases of netCDF aren't tested under VC++ 6.0. (They are tested with VC++.NET). Older versions of the library, notably 3.5.0, did compile with VC++ 6.0, and the instructions for doing so are presented below.
Note that the introduction of better large file support (for files larger than 2 GiB) in version 3.6.0 and greater requires an off_t type of 8 bytes, and it's not clear how, or if, this can be found in VC++ 6.0.
To build the library yourself, get the file ftp://ftp.unidata.ucar.edu/pub/netcdf/contrib/win32/netcdf-3.5.0.win32make.VC6.zip
The makefiles there describe how to build netcdf-3.5 using the using Microsoft Visual C++ 6.x and (optionally) Digital Visual Fortran 6.x. Because of difficulties in getting Microsoft Visual Studio to fall in line with our existing source directory scheme, we chose _not_ to build the system "inside" Visual Studio. Instead, we provide a simple group of "msoft.mak" files which can be used. If you wish to work in Visual Studio, go ahead. Read the section called "Macros" at the end of this discussion.
As of this writing, we have not tried compiling the C++ interface in this environment.
nmake is a Microsoft version of make, which comes with VC 6.0 (and VC 7.0) in directory C:\Program Files\Microsoft Visual Studio\VC98\Bin (or, for VC 7.0, C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin).
To build netcdf, proceed as follows:
unpack source distribution.
copy netcdf-3.5.0.win32make.VC6.zipcd src\libsrc; nmake /f msoft.maknmake /f msoft.mak testcd ..\fortran; nmake /f msoft.maknmake /f msoft.mak testcd ..\nctest; nmake /f msoft.mak testcd ..\nc_test; nmake /f msoft.mak testcd ..\nf_test; nmake /f msoft.mak test..\ncdump; nmake /f msoft.mak..\ncgen; nmake /f msoft.mak..\ncdump; nmake /f msoft.mak test..\ncgen; nmake /f msoft.mak testTo Install| Contact Us Site Map Search Terms and Conditions Privacy Policy Participation Policy | ||||||
|
||||||