[Top][All Lists]

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

DEFUN_DLD: f1.oct calling f2.oct

From: John W. Eaton
Subject: DEFUN_DLD: f1.oct calling f2.oct
Date: Tue, 30 Mar 1999 12:36:44 -0600 (CST)

On 30-Mar-1999, Robert Butora <address@hidden> wrote:

| I was trying to call function "f2" (defined in by DEFUN_DLD)
| from function "f1" defined in by DEFUN_DLD.
| After faultless linking both with mkoctfile into f1.oct
| and f2.oct and running the dynamic linker was complaining
| about unable to find shared objects (f2.oct).
| However, if "f1.oct" calls some of octave's functions
| (also residing in different .oct file) it works fine.
| How to declare a function defined by DEFUN_DLD ?
| to be included into differenet .cc file for dynamic linking. 

The reliable way to do what you want is to use feval.  In 2.0.x, it's
declared in toplev.h:

  extern octave_value_list
  feval (const string& name, const octave_value_list& args, int nargout);

It can be used to call .oct or .m files or even built-in functions.


reply via email to

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