[Top][All Lists]

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

Re: Seeking help in Octave C++ API

From: Carlo De Falco
Subject: Re: Seeking help in Octave C++ API
Date: Mon, 5 Apr 2021 14:05:10 +0000

> Il giorno 5 apr 2021, alle ore 12:11, Siddhartha Roy 
> <> ha scritto:
> I have installed image package but I don't know how to load the package while 
> using C++. I mean I know how to load it in octave (by running "pkg load 
> image") but I don't know how to load it while using C++.

You are going over the same point again and again!
Once you embed the interpreter, you can run any octave language code from your 
C++ program using the "feval" method ...

so, if at the Octave prompt you would write

  pkg ("load", "image")

in C++ you would do something like

  octave_value_list ov;
  ov(0) = "load";
  ov(1) = "image";
  interp.feval ("pkg", ov, 0);

Please stop writing to the maintainers list, as I said the help list is better 
suited for this topic.
It would also be nice if you would try to adapt to the etiquette of the Octave 
lists and stop top posting.


reply via email to

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