help-octave
[Top][All Lists]
Advanced

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

Re: Error compiling java pkg under octave-3.4.0: "octave_refcount redecl


From: Michael Goffioul
Subject: Re: Error compiling java pkg under octave-3.4.0: "octave_refcount redeclaration"
Date: Fri, 11 Feb 2011 15:22:13 +0000

Simply replace those 2 occurrences with something else, for instance
octave_reference_object_counter.

Michael.


On Thu, Feb 10, 2011 at 8:19 PM, Philip Nienhuis <address@hidden> wrote:
> 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
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
>


reply via email to

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