[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bitwise xor
From: |
Ilargia |
Subject: |
bitwise xor |
Date: |
Sat, 11 Sep 2004 13:47:03 -0500 |
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
-------------------------------------------------------------