[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 20031020: To compile with Code Warrior (fwd)



Resolution of:

>To: address@hidden
>From: "Xavier WARIN(Compte LOCAL) - I23" <address@hidden>
>Subject: Re: 20031020: To compile with Code Warrior
>Organization: 
>Keywords: C++ interface

------- Forwarded Message

Date:    Wed, 22 Oct 2003 08:08:24 +0200
From:    "Xavier WARIN(Compte LOCAL) - I23" <address@hidden>
To:      address@hidden
Subject: Re: 20031020: To compile with Code Warrior

oups ...

I made a mistake. I checked in the original files i compile with gcc and 
VC7 and i get the sstream header. While modifying the files to port them 
with codewarrior i think i erased the header in ncvalues.h
Sorry for this mistake.

Xavier

Russ Rew wrote:
>>To: address@hidden
>>From: "Xavier WARIN(Compte LOCAL) - I23" <address@hidden>
>>Subject: Re: 20031020: To compile with Code Warrior
>>Organization: 
>>Keywords: C++ interface
> 
> 
> Hi Xavier,
> 
> 
>>In order to compile with Code Warrior the beta 13 version , i had to add 
>>the header
>>  #include <sstream>
>>to ncvalues.h in order to use the ostringstream class.
>>Perhaps keywords could you add it in a following version ?
> 
> 
> I don't understand why the beta13 version you have doesn't already
> have 
> 
>   #include <sstream>
> 
> I just checked by unpacking the official beta release at
> 
>   ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-3.5.1-beta13.tar.Z
> 
> which is the same as
> 
>   ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-beta.tar.Z
> 
> and the first 15 lines of the file netcdf-3.5.1-beta13/src/cxx/ncvalues.h
> are (indented 2 spaces):
> 
>   /*********************************************************************
>    *   Copyright 1992, University Corporation for Atmospheric Research
>    *   See netcdf/README file for copying and redistribution conditions.
>    *
>    *   Purpose:       interface for classes of typed arrays for netCDF
>    *
>    *   $Header: /upc/share/CVS/netcdf-3/cxx/ncvalues.h,v 1.4 2002/12/30 
> 23:44:24 russ Exp $
>    *********************************************************************/
> 
>   #ifndef Ncvalues_def
>   #define Ncvalues_def
> 
>   #include <iostream>
>   #include <sstream>
>   #include <limits.h>
> 
> And I noticed the #include <sstream> was also in netcdf-3.5.1-beta10
> and all subsequent beta releases.
> 
> Did you get the beta 13 somewhere else, perhaps from a mirror site
> that has changed the distribution?  Or perhaps the "make install" did
> not install the ncvalues.h file in the proper place, perhaps because
> of permissions problems?
> 
> --Russ
> 
> _____________________________________________________________________
> 
> Russ Rew                                         UCAR Unidata Program
> address@hidden          http://www.unidata.ucar.edu/staff/russ
> 
> 


------- End of Forwarded Message