[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
troubles with mkoctfiles
From: |
Istvan Albert |
Subject: |
troubles with mkoctfiles |
Date: |
Mon, 27 Aug 2001 19:20:53 -0500 |
Hello,
I have recently started using Octave 2.1.33 (RedHat linux) it works great
but I am having troubles with the mkoctfile script.
This is the result of compiling hello.cc
mkoctfile -v hello.cc
c++ -c -fPIC -I/usr/include/octave-2.1.33 -I/usr/include/octave-2.1.33/octave
-I/usr/include -mieee-fp -fno-rtti -fno-exceptions -fno-implicit-templates -O2
-march=i386 -mcpu=i686 hello.cc -o hello.o
hello.cc: In function `octave_value_list Fhello (const
octave_value_list &, int)':
hello.cc:94: no matching function for call to `octave_value::print ()'
/usr/include/octave-2.1.33/octave/ov.h:479: candidates are: void
octave_value::print (ostream &, bool = false) const
now if I comment out the tmp.print line in hello.cc the script compiles and runs
fine in Octave (doesn't output the arguments anymore of course). What could be
the
problem here? ( Although I have programmed in C I'm not used to C++ syntax so
it
is difficult for me to guess why this methods is not seen)
When I try to compile the other script (oregonator.cc), I get
oregonator.cc: In function `octave_value_list Foregonator (const
octave_value_list &, int)':
oregonator.cc:15: conversion from `Array<double>' to non-scalar type
`ColumnVector' requested
clearly something is wrong with my setup. Any thoughts of what it might be?
BTW, is there an "optimal" linux distribution that is guaranteed to run and
compiles Octave out of the box. Mine surely doesn't.
Any input appreciated.
thanks,
Istvan.
-------------------------------------------------------------
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
-------------------------------------------------------------
- troubles with mkoctfiles,
Istvan Albert <=