[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave 2.1.37 available for ftp
From: |
John W. Eaton |
Subject: |
Re: Octave 2.1.37 available for ftp |
Date: |
Wed, 23 Oct 2002 17:03:11 -0500 |
On 23-Oct-2002, Etienne Grossmann <address@hidden> wrote:
| I have just installed 2.1.37, but compilation of octave-forge ends
| with :
|
| ======================================================================
| mkoctfile -DHAVE_OCTAVE_21 -v fsolve.cc
| g++ -c -fPIC -I/usr/local/include/octave-2.1.37
-I/usr/local/include/octave-2.1.37/octave -I/usr/local/include -mieee-fp
-fno-implicit-templates -g -O2 -Wall -DHAVE_OCTAVE_21 fsolve.cc -o fsolve.o
| fsolve.cc: In function `class octave_value_list Ffsolve(const
octave_value_list &, int)':
| fsolve.cc:211: no matching function for call to `NLEqn::set_options
(NLEqn_options &)'
| make[1]: *** [fsolve.oct] Error 1
| make[1]: Leaving directory
`/home/cdisk/etienne/prog/octave/octave-forge/octave-forge/FIXES'
| make: *** [FIXES/] Error 2
| ======================================================================
Change "set_options" to "copy" or try the follwoing patch for Octave.
Thanks,
jwe
2002-10-23 John W. Eaton <address@hidden>
* mk-opts.pl (emit_opt_class_header): Make set_options another
name for copy.
Index: mk-opts.pl
===================================================================
RCS file: /usr/local/cvsroot/octave/mk-opts.pl,v
retrieving revision 1.8
diff -u -r1.8 mk-opts.pl
--- mk-opts.pl 17 Aug 2002 02:18:18 -0000 1.8
+++ mk-opts.pl 23 Oct 2002 22:01:57 -0000
@@ -406,6 +406,11 @@
print " reset = opt.reset;
}\n";
+ ## For backward compatibility and because set_options is probably
+ ## a better name in some contexts:
+
+ print "\n void set_options (const ${class_name}& opt) { copy (opt); }\n";
+
print "\n void set_default_options (void) { init (); }\n";
for ($i = 0; $i < $opt_num; $i++)