[netcdfgroup] bug report: 'nc_create' failed in pre-built netCDF4 (64bit) on windows

Hi,

I downloaded and installed both `32bit` and `64bit` libraries from http://www.unidata.ucar.edu/software/netcdf/docs/winbin.html.

And here is the minimum code (`test.c`) to reproduce the error:
```c++
#include <netcdf.h>
void main(){

int ncid;
int retval = nc_create("foo.nc", NC_NETCDF4, &ncid);
}

```
`32bit` version successfully runs and creates `foo.nc` file
```bash
gcc -m32 test.c -I/c:/netcdf4/i386/include -L/c:/netcdf4/i386/lib -lnetcdf
```
 but `64bit` version crashes.
```bash
gcc -m64 test.c -I/c:/netcdf4/x84/include -L/c:/netcdf4/x64/lib -lnetcdf
```


Thanks,

Mike



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