From: Gernot H. <hu...@ri...> - 2004-10-19 11:19:57
|
Hello, I am using octave-2.1.59 with octave-forge 2004.09.09 on FreeBSD 5.2-current, but there is problem with dispatch. Dispatched functions are not accessible and return following error: error: feval: the symbol `' is not valid as a function See compile log snippet at the bottom Can you tell what is going wrong here? Gernot Function lu and glu are available (I have commented all dispatch calls in the PKG_ADD files): octave-2.1.59:1> lu *** lu: - Loadable Function: [L, U, P] = lu (A) Compute the LU decomposition of A, using subroutines from LAPACK. The result is returned in a permuted form, according to the optional return value P. For example, given the matrix `a = [1, 2; 3, 4]', [...] octave-2.1.59:1> dispatch("lu","glu","galois") octave-2.1.59:2> lu error: feval: the symbol `' is not valid as a function octave-2.1.59:2> glu *** glu: - Loadable Function: [L, U, P] = glu (A) Compute the LU decomposition of A in a Galois Field. The result is returned in a permuted form, according to the optional return value P. For example, given the matrix `a = gf([1, 2; 3, 4],3)', [l, u, p] = glu (a) [...] Compilation worked nice without warning/error/etc... midori# gmake mkoctfile -DHAVE_OCTAVE_21 -v -DUSE_TERM -DHAVE_TERMCAP_H -DTYPEID_HAS_CLASS dispatch.cc g++ -c -L/usr/local/include -fPIC -I/usr/local/include/octave-2.1.59 -I/usr/local/include/octave-2.1.59/octave -I/usr/local/include -mieee-fp -g -O2 -DHAVE_OCTAVE_21 -DUSE_TERM -DHAVE_TERMCAP_H -DTYPEID_HAS_CLASS dispatch.cc -o dispatch.o gcc -shared -o dispatch.oct dispatch.o -L/usr/local/lib/octave-2.1.59 -loctinterp -loctave -lcruft -L/usr/local/lib -lalapack -lcblas -lf77blas -latlas -lreadline -lncurses -lm -L/usr/local/lib -L/usr/lib -lg2c -lm |