Re: Problem compiling netcdf.h under MS-Windows

Philippe, first check if your VS6 is patched to service pack4. VS6 is
known to be a terrible compiler with STL related issues. Your best bet
is to use a better compiler such as MingW, GCC/G++, Borland C++ (free),
or latest MS compilers express edition (free) on Windows. 

It could also be a coding issue of your c++ application, try to
explicitly quantify every occurance of std::map instead of 'using
namespace std'. 'using namespace std' simply pulls in all the names in
std namespace and pollutes names in the global scope.

Fei

----- Original Message -----
From: Philippe Poilbarbe <Philippe.Poilbarbe@xxxxxx>
Date: Tuesday, June 20, 2006 6:16 am
Subject: Problem compiling netcdf.h under MS-Windows

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

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


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