Re: Problem compiling netcdf.h under MS-Windows

Philippe Poilbarbe <Philippe.Poilbarbe@xxxxxx> writes:

> Hello,
>
> With NetCDF 3.6.1, functions nc_put_varm and
> nc_get_varm defined in netcdf.h (cvs release 2.105)
> have a formal parameter named 'map'.
>
> With g++ compiler there is no problem but with
> Microsoft compilers (V Studio 6) it complains
> about a name conflict with the STL 'map' template
> (if netcdf.h is included in C++ source file).
>
> The other _varm functions have imapp instead of map.
>
> -- 
> Philippe Poilbarbe
> CLS - Space Oceanography Group
>
> ==============================================================================
> To unsubscribe netcdfgroup, visit:
> http://www.unidata.ucar.edu/mailing-list-delete-form.html
> ==============================================================================
>
>

Howdy Philippe!

Thanks for pointing this out. I have fixed this in the codebase and
the fix will appear in the next 3.6.2 beta release.

In the meantime you could just change them yourself in netcdf.h to
imapp, and then rebuild netCDF.

Thanks!

Ed

-- 
Ed Hartnett  -- ed@xxxxxxxxxxxxxxxx

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