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 <pr.nienh...@hccnet.nl> 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 > help-oct...@octave.org > https://mailman.cae.wisc.edu/listinfo/help-octave > ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev