[Top][All Lists]

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

Re: error: feval: function 'pkg.m' not found

From: ola
Subject: Re: error: feval: function 'pkg.m' not found
Date: Wed, 9 Jan 2019 12:10:38 -0600 (CST)

I have the same problem on Linux Ubuntu 18.04 and Octave 4.2.2.
The calling  feval("pkg", ovl("load", "optim"), 0); in c++ code gives the
executable, but it doesn't work. The error is related to memory dump. 
Is there other way to call pkg (for functions in other packages) from c++
code than using feval function?
Is there a way to call Fpkg using #include <octave/builtin-defun-decls.h> ?
Is there a known way to #include other packages eg. like <octave/optim.h> ?

There is output from gdb with errors:

Thread 1 "SRR_HDX" received signal SIGSEGV, Segmentation fault.
0x00007ffff6e570ea in octave::application::interactive() () from
(gdb) f 0
#0  0x00007ffff6e570ea in octave::application::interactive() () from
(gdb) f 1
#1  0x00007ffff7824806 in octave_pager_buf::sync() () from
(gdb) f 2
#2  0x00007ffff5703f5e in std::ostream::flush() () from
(gdb) f 3
#3  0x00007ffff78250e1 in flush_octave_stdout() () from
(gdb) f 4
#4  0x00007ffff7576525 in ?? () from
(gdb) f 5
#5  0x00007ffff7574393 in ?? () from
(gdb) f 6
#6  0x00007ffff757446e in ?? () from
(gdb) f 7
#7  0x00007ffff75744c7 in verror(char const*, __va_list_tag*) () from
(gdb) f 8
#8  0x00007ffff7574569 in error(char const*, ...) () from
(gdb) f 9
#9  0x00007ffff73d5c50 in feval(std::__cxx11::basic_string<char,
std::char_traits&lt;char>, std::allocator<char> > const&, octave_value_list
const&, int) () from /usr/lib/x86_64-linux-gnu/
(gdb) f 10
#10 0x000055555555939d in main (argc=<optimized out>, argv=0x7fffffffdf08)
58        feval("pkg", ovl("load", "optim"), 0);
(gdb) f 11
#0  0x0000000000000000 in ?? ()

Can someone help me? 

Sent from:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]