help-octave
[Top][All Lists]
Advanced

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

Re: 2.1.68 fails to compile on Solaris


From: steven mestdagh
Subject: Re: 2.1.68 fails to compile on Solaris
Date: Thu, 31 Mar 2005 00:58:43 +0200

On Wed, Mar 30, 2005 at 05:25:07PM -0500, John W. Eaton wrote:
> On 31-Mar-2005, steven mestdagh <address@hidden> wrote:
> 
> | On Wed, Mar 30, 2005 at 04:52:12PM -0500, John W. Eaton wrote:
> | > 
> | > Oh, maybe the following patch will help?
> | > 
> | > jwe
> | > 
> | > 
> | > liboctave/ChangeLog:
> | > 
> | > 2005-03-30  John W. Eaton  <address@hidden>
> | > 
> | >   * DiagArray2.h (DiagArray<T>::Proxy::operator T ()):
> | >   Don't use initializer.
> | > 
> | > 
> | > Index: liboctave/DiagArray2.h
> | > ===================================================================
> | > RCS file: /usr/local/cvsroot/octave/liboctave/DiagArray2.h,v
> | > retrieving revision 1.11
> | > diff -u -r1.11 DiagArray2.h
> | > --- liboctave/DiagArray2.h        23 Nov 2003 08:07:53 -0000      1.11
> | > +++ liboctave/DiagArray2.h        30 Mar 2005 21:51:30 -0000
> | > @@ -86,7 +86,7 @@
> | >     return object->get (i);
> | >   else
> | >     {
> | > -     static T foo (0);
> | > +     static T foo ();
> | >       return foo;
> | >     }
> | >        }
> | 
> | that gives the following error (on HP-UX):
> 
> Oops, I think that should just be
> 
>   static T foo;
> 
> not
> 
>   static T foo ();
> 
> jwe

that works, but still gives these type of warnings:

/freeware/octave/src/octave/liboctave/DiagArray2.cc: In member function
 `T& DiagArray2<T>::xelem(int, int) [with T = bool]':
/freeware/octave/src/octave/liboctave/Array-b.cc:48:   instantiated from here
/freeware/octave/src/octave/liboctave/DiagArray2.cc:77: warning: sorry:
 semantics of inline function static data `bool foo' are wrong (you'll wind
 up with multiple copies)
/freeware/octave/src/octave/liboctave/DiagArray2.cc:77: warning:   you can
 work around this by removing the initializer



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]