help-octave
[Top][All Lists]
Advanced

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

Re: bitwise xor


From: David Bateman
Subject: Re: bitwise xor
Date: Mon, 13 Sep 2004 10:22:44 +0200
User-agent: Mutt/1.4.1i

Where did you get bitfcns.cc? This file exists in octave 2.1.58, but
it doesn't exist in octave-forge. Its existence in 2.1.58 is due to the
fact that 2.1.58 now includes int/uint types and thes ebit operations
can be handled much better than the octave-forge versions. So I'd suggest
an upgrade to octave 2.1.58...

In any case you shouldn't just build parts of octave-forge with mkoctfile.
Often the code contains special cases to allow building with different
versions of octave, and therefore you should run ./configure in the
octave-forge base and then use the Makefile in the directory to build 
the code. If you'd done "mkoctfile bitand.cc" on the octave-forge version
you would have missing out on the links to bitxor, etc and NDArray's
being able to be passed as parameters in these functions.

Regards
David



According to Ilargia <address@hidden> (on 09/11/04):
> Hi,
> I would like to use a bitwise xor function for octave.
> I have tried with bitfcns.cc available in sourceforge.
> However, I'm not able to compile it.
> My octave version is 2.1.57.
> When I try to compile bitfcns.cc I get the following
> errors.
> thanks for your help.
> Ilargia.
> 
> 
> address@hidden username]$ mkoctfile bitfcns.cc
> In file included from
> /usr/include/c++/3.3.2/backward/strstream:51,
>                  from
> /usr/local/include/octave-2.1.57/octave/lo-sstream.h:48,
>                  from
> /usr/local/include/octave-2.1.57/octave/dim-vector.h:33,
>                  from
> /usr/local/include/octave-2.1.57/octave/Array.h:36,
>                  from
> /usr/local/include/octave-2.1.57/octave/str-vec.h:29,
>                  from bitfcns.cc:27:
> /usr/include/c++/3.3.2/backward/backward_warning.h:32:2:
> warning: #warning This file includes at least one
> deprecated or antiquated header. Please consider using
> one of the 32 headers found in section 17.4.1.2 of the
> C++ standard. Examples include substituting the <X>
> header for the <X.h> header for C++ includes, or
> <sstream> instead of the deprecated header
> <strstream.h>. To disable this warning use
> -Wno-deprecated.
> In file included from bitfcns.cc:28:
> /usr/local/include/octave-2.1.57/octave/quit.h: In
> function `void
>    octave_jump_to_enclosing_context()':
> /usr/local/include/octave-2.1.57/octave/quit.h:56:
> error: syntax error before `
>    ;' token
> /usr/local/include/octave-2.1.57/octave/quit.h:56:
> error: ISO C++ forbids
>    declaration of `GCC_ATTR_NORETURN' with no type
> /usr/local/include/octave-2.1.57/octave/quit.h: In
> function `void
>    octave_throw_interrupt_exception()':
> /usr/local/include/octave-2.1.57/octave/quit.h:79:
> error: syntax error before `
>    ;' token
> /usr/local/include/octave-2.1.57/octave/quit.h:79:
> error: ISO C++ forbids
>    declaration of `GCC_ATTR_NORETURN' with no type
> /usr/local/include/octave-2.1.57/octave/quit.h:79:
> error: redefinition of `int
>    GCC_ATTR_NORETURN'
> /usr/local/include/octave-2.1.57/octave/quit.h:56:
> error: `int
>    GCC_ATTR_NORETURN' previously declared here
> /usr/local/include/octave-2.1.57/octave/quit.h: In
> function `void
>    octave_throw_bad_alloc()':
> /usr/local/include/octave-2.1.57/octave/quit.h:81:
> error: syntax error before `
>    ;' token
> /usr/local/include/octave-2.1.57/octave/quit.h:81:
> error: ISO C++ forbids
>    declaration of `GCC_ATTR_NORETURN' with no type
> /usr/local/include/octave-2.1.57/octave/quit.h:81:
> error: redefinition of `int
>    GCC_ATTR_NORETURN'
> /usr/local/include/octave-2.1.57/octave/quit.h:79:
> error: `int
>    GCC_ATTR_NORETURN' previously declared here
> In file included from
> /usr/local/include/octave-2.1.57/octave/ov-fcn.h:32,
>                  from
> /usr/local/include/octave-2.1.57/octave/ov-builtin.h:32,
>                  from
> /usr/local/include/octave-2.1.57/octave/defun-int.h:28,
>                  from
> /usr/local/include/octave-2.1.57/octave/defun.h:30,
>                  from bitfcns.cc:30:
> /usr/local/include/octave-2.1.57/octave/oct-time.h:93:
> error: non-local
>    function `bool operator==(const
> octave_throw_bad_alloc()::octave_time&,
>    const octave_throw_bad_alloc()::octave_time&)' uses
> local type `const
>    octave_throw_bad_alloc()::octave_time'
> /usr/local/include/octave-2.1.57/octave/oct-time.h: In
> function `bool
>    operator==(const
> octave_throw_bad_alloc()::octave_time&, const
>    octave_throw_bad_alloc()::octave_time&)':
> /usr/local/include/octave-2.1.57/octave/oct-time.h:99:
> error: non-local
>    function `bool operator!=(const
> octave_throw_bad_alloc()::octave_time&,
>    const octave_throw_bad_alloc()::octave_time&)' uses
> local type `const
>    octave_throw_bad_alloc()::octave_time'
> /usr/local/include/octave-2.1.57/octave/oct-time.h: In
> function `bool
>    operator!=(const
> octave_throw_bad_alloc()::octave_time&, const
>    octave_throw_bad_alloc()::octave_time&)':
> /usr/local/include/octave-2.1.57/octave/oct-time.h:105:
> error: non-local
>    function `bool operator<(const
> octave_throw_bad_alloc()::octave_time&, const
>    octave_throw_bad_alloc()::octave_time&)' uses local
> type `const
>    octave_throw_bad_alloc()::octave_time'
> /usr/local/include/octave-2.1.57/octave/oct-time.h: In
> function `bool
>    operator<(const
> octave_throw_bad_alloc()::octave_time&, const
>    octave_throw_bad_alloc()::octave_time&)':
> /usr/local/include/octave-2.1.57/octave/oct-time.h:118:
> error: non-local
>    function `bool operator<=(const
> octave_throw_bad_alloc()::octave_time&,
>    const octave_throw_bad_alloc()::octave_time&)' uses
> local type `const
>    octave_throw_bad_alloc()::octave_time'
> /usr/local/include/octave-2.1.57/octave/oct-time.h: In
> function `bool
>    operator<=(const
> octave_throw_bad_alloc()::octave_time&, const
>    octave_throw_bad_alloc()::octave_time&)':
> /usr/local/include/octave-2.1.57/octave/oct-time.h:124:
> error: non-local
>    function `bool operator>(const
> octave_throw_bad_alloc()::octave_time&, const
>    octave_throw_bad_alloc()::octave_time&)' uses local
> type `const
>    octave_throw_bad_alloc()::octave_time'
> /usr/local/include/octave-2.1.57/octave/oct-time.h: In
> function `bool
>    operator>(const
> octave_throw_bad_alloc()::octave_time&, const
>    octave_throw_bad_alloc()::octave_time&)':
> /usr/local/include/octave-2.1.57/octave/oct-time.h:137:
> error: non-local
>    function `bool operator>=(const
> octave_throw_bad_alloc()::octave_time&,
>    const octave_throw_bad_alloc()::octave_time&)' uses
> local type `const
>    octave_throw_bad_alloc()::octave_time'
> /usr/local/include/octave-2.1.57/octave/oct-time.h: In
> function `bool
>    operator>=(const
> octave_throw_bad_alloc()::octave_time&, const
>    octave_throw_bad_alloc()::octave_time&)':
> /usr/local/include/octave-2.1.57/octave/oct-time.h:143:
> error: declaration of `
>    struct octave_throw_bad_alloc()::octave_base_tm' in
> `bool operator>=(const
>    octave_throw_bad_alloc()::octave_time&, const
>    octave_throw_bad_alloc()::octave_time&)' which does
> not enclose `void
>    octave_throw_bad_alloc()'
> /usr/local/include/octave-2.1.57/octave/oct-time.h:143:
> confused by earlier errors, bailing out
> 
>  
> 
> 
>       
>       
>               
> ___________________________________________________________ALL-NEW Yahoo! 
> Messenger - all new features - even more fun!  http://uk.messenger.yahoo.com
> 
> 
> 
> -------------------------------------------------------------
> 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
> -------------------------------------------------------------

-- 
David Bateman                                address@hidden
Motorola CRM                                 +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 1 69 35 77 01 (Fax) 
91193 Gif-Sur-Yvette FRANCE

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary



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