[netcdfgroup] Support for gcc 4.3

The following patch is needed to support gcc 4.3. It also still works for gcc 4.1.2, and should for other C++ standard compliant compilers as well.


--
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion@xxxxxxxxxxxxx
Boulder, CO 80301              http://www.cora.nwra.com
--- netcdf-3.6.2/cxx/ncvalues.cpp.gcc43 2006-12-29 09:38:56.000000000 -0700
+++ netcdf-3.6.2/cxx/ncvalues.cpp       2008-04-02 13:45:39.000000000 -0600
@@ -9,7 +9,7 @@
 
 #include <config.h>
 #include <iostream>
-#include <string>
+#include <cstring>
 
 #include "ncvalues.h"
 
--- netcdf-3.6.2/examples/CXX/sfc_pres_temp_rd.cpp.gcc43        2007-01-19 
05:52:13.000000000 -0700
+++ netcdf-3.6.2/examples/CXX/sfc_pres_temp_rd.cpp      2008-04-02 
13:46:08.000000000 -0600
@@ -18,6 +18,7 @@
 
 #include <iostream>
 #include <netcdfcpp.h>
+#include <cstring>
 
 using namespace std;
 
  • 2008 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: