help-octave
[Top][All Lists]
Advanced

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

mkoctfile not working


From: Charles Fox
Subject: mkoctfile not working
Date: Mon, 12 Jul 2004 20:13:43 +0100 (BST)

I'm trying to compile the matpow example from the wiki:
  http://wiki.octave.org/wiki.pl?CodaTutorial

But I get the following errors.  My octave version is 2.1.44 on mandrake,
installed with rpm.  I have the folders /usr/src/octave and
/usr/lib/octave.

What am I doing wrong?

address@hidden smtest]$ mkoctfile matpow.cc 
In file included from /usr/include/octave/ov-typeinfo.h:34,
                 from /usr/include/octave/ov-base.h:40,
                 from /usr/include/octave/ov-fcn.h:36,
                 from /usr/include/octave/ov-builtin.h:32,
                 from /usr/include/octave/defun-int.h:28,
                 from /usr/include/octave/defun-dld.h:30,
                 from /usr/include/octave/oct.h:35,
                 from matpow.cc:2:
/usr/include/octave/Array3.h: In constructor `Array3<T>::Array3(T*, int,
int, int)':
/usr/include/octave/Array3.h:49: error: there are no arguments to
`get_size' that depend on a template parameter, so a declaration of
`get_size' must be available
/usr/include/octave/Array3.h:49: error: (if you use `-fpermissive', G++
will accept your code, but allowing the use of an undeclared name is
deprecated)
/usr/include/octave/Array3.h:51: error: `d2' undeclared (first use this
function)
/usr/include/octave/Array3.h:51: error: (Each undeclared identifier is
reported only once for each function it appears in.)
/usr/include/octave/Array3.h:53: error: there are no arguments to
`set_max_indices' that depend on a template parameter, so a declaration of
`set_max_indices' must be available
/usr/include/octave/Array3.h: In constructor `Array3<T>::Array3()':
/usr/include/octave/Array3.h:60: error: `d2' undeclared (first use this
function)
/usr/include/octave/Array3.h:62: error: there are no arguments to
`set_max_indices' that depend on a template parameter, so a declaration of
`set_max_indices' must be available
/usr/include/octave/Array3.h: In constructor `Array3<T>::Array3(int, int,
int)':
/usr/include/octave/Array3.h:65: error: there are no arguments to
`get_size' that depend on a template parameter, so a declaration of
`get_size' must be available
/usr/include/octave/Array3.h:67: error: `d2' undeclared (first use this
function)
/usr/include/octave/Array3.h:69: error: there are no arguments to
`set_max_indices' that depend on a template parameter, so a declaration of
`set_max_indices' must be available
/usr/include/octave/Array3.h: In constructor `Array3<T>::Array3(int, int,
int, const T&)':
/usr/include/octave/Array3.h:74: error: `d2' undeclared (first use this
function)
/usr/include/octave/Array3.h:76: error: there are no arguments to
`set_max_indices' that depend on a template parameter, so a declaration of
`set_max_indices' must be available
/usr/include/octave/Array3.h: In copy constructor `Array3<T>::Array3(const
Array3<T>&)':
/usr/include/octave/Array3.h:81: error: `d2' undeclared (first use this
function)
/usr/include/octave/Array3.h:83: error: there are no arguments to
`set_max_indices' that depend on a template parameter, so a declaration of
`set_max_indices' must be available
/usr/include/octave/Array3.h: In member function `Array3<T>&
Array3<T>::operator=(const Array3<T>&)':
/usr/include/octave/Array3.h:90: error: `rep' undeclared (first use this
function)
/usr/include/octave/Array3.h:93: error: `d1' undeclared (first use this
function)
/usr/include/octave/Array3.h:94: error: `d2' undeclared (first use this
function)
/usr/include/octave/Array3.h: In member function `T& Array3<T>::xelem(int,
int, int)':
/usr/include/octave/Array3.h:105: error: `d2' undeclared (first use this
function)
/usr/include/octave/Array3.h: In member function `T Array3<T>::xelem(int,
int, int) const':
/usr/include/octave/Array3.h:106: error: `d2' undeclared (first use this
function)
/usr/include/octave/Array3.h: In member function `T&
Array3<T>::checkelem(int, int, int)':
/usr/include/octave/Array3.h:114: error: `d1' undeclared (first use this
function)
/usr/include/octave/Array3.h:114: error: `d2' undeclared (first use this
function)
/usr/include/octave/Array3.h: In member function `T& Array3<T>::elem(int,
int, int)':
/usr/include/octave/Array3.h:123: error: `d2' undeclared (first use this
function)
/usr/include/octave/Array3.h: In member function `T
Array3<T>::checkelem(int, int, int) const':
/usr/include/octave/Array3.h:133: error: `d1' undeclared (first use this
function)
/usr/include/octave/Array3.h:133: error: `d2' undeclared (first use this
function)
/usr/include/octave/Array3.h: In member function `T Array3<T>::elem(int,
int, int) const':
/usr/include/octave/Array3.h:141: error: `d2' undeclared (first use this
function)
/usr/include/octave/Array3.h: In constructor `Array3<T>::Array3(int, int,
int, const T&) [with T = octave_value (*)(const octave_value&, const
octave_value&)]':
/usr/include/octave/ov-typeinfo.h:129:   instantiated from here
/usr/include/octave/Array3.h:76: error: `set_max_indices' undeclared
(first use this function)
/usr/include/octave/Array3.h: In constructor `Array3<T>::Array3(int, int,
int, const T&) [with T = octave_value (*)(octave_value&, const
octave_value_list&, const octave_value&)]':
/usr/include/octave/ov-typeinfo.h:129:   instantiated from here
/usr/include/octave/Array3.h:76: error: `set_max_indices' undeclared
(first use this function)
address@hidden smtest]$ 



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