help-octave
[Top][All Lists]
Advanced

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

HOWTO: Two "DEFUN_DLD" functions in one source file


From: John W. Eaton
Subject: HOWTO: Two "DEFUN_DLD" functions in one source file
Date: Wed, 24 Feb 1999 14:15:10 -0600 (CST)

On 24-Feb-1999, Joao Cardoso <address@hidden> wrote:

| Can I use two (or more) DEFUN_DLD functions in one file? I tried to
| merge hello.cc and oregonator.cc in several ways but it didn't work.
| 
| However, in the Octave sources, there are source files such as minmax.cc
| that define two dll functions, and each dll function can be used by
| itself in the lite-kernel version of Octave. How can I do it?

If you have a file, say x.cc, that defines

  DEFUN_DLD (foo, , ,
    "foo help"
  {
    ...
  }

  DEFUN_DLD (bar, , ,
    "bar help"
  {
    ...
  }

and you run `mkoctfile x.cc' to create x.oct, you can access `foo' and
`bar' in x.oct if you create some links:

  ln x.oct foo.oct
  ln x.oct bar.oct

jwe



reply via email to

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