[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Error compiling java pkg under octave-3.4.0: "octave_refcount redeclarat
From: |
Philip Nienhuis |
Subject: |
Error compiling java pkg under octave-3.4.0: "octave_refcount redeclaration" |
Date: |
Thu, 10 Feb 2011 21:19:46 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6 |
Hi,
(Mandriva Linux 2010.2 (Spring), Octave-3.4.0)
I'm trying to install the octave-forge java pkg (more or less cf. svn
version).
I get the following error messages (beware of line wrap):
octave-3.4.0:5> pkg install -verbose java-1.2.8.tar.gz
warning: creating installation directory /usr/local/share/octave/packages
__java__.cc:62: error: int octave_refcount redeclared as different
kind of symbol
/usr/local/include/octave-3.4.0/octave/../octave/oct-refcount.h:28:
error: previous declaration of template<class T> class octave_refcount
__java__.cc: In function int unbox(JNIEnv*, const octave_value&,
jobject_ref&, jclass_ref&):
__java__.cc:1170: error: missing template arguments before ++ token
make: *** [__java__.oct] Error 1
For your easy reference, the offending statements in __java__.cc (and in
fact the only two places where octave_refcount occurs) are these:
<top of file>
:
static int octave_refcount=0;
:
<long long snip>
:
int ID = octave_refcount++;
:
Apparently "octave_refcount" has been previously declared in 3.4.0;
earlier Octave versions didn't show this error. Indeed, file
/usr/local/include/octave-3.4.0/octave/oct_refcount seems to have been
created in 2011.
What should be done to get past this error? (warning: my c++ proficiency
is limited...)
TIA,
Philip
- Error compiling java pkg under octave-3.4.0: "octave_refcount redeclaration",
Philip Nienhuis <=