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

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
==============================================================================


 
 
  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