help-octave
[Top][All Lists]
Advanced

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

problem with dld example


From: John W. Eaton
Subject: problem with dld example
Date: Tue, 9 Jul 1996 12:55:23 -0500

On  3-Jul-1996, Jeppe Sigbrandt <address@hidden> wrote:

: Am interested in using dynamic loading with Octave.
: Downloaded, compiled & installed dld-3.3 for Linux a.out.
: Tried to compile example program in section 5.8 of documentation:
: 
: # g++ -I/mnt/jay/octave-1.1.1/src -I/mnt/jay/octave-1.1.1/liboctave ex_dld.C
: 
: Which yields:
: 
: ex_dld.C:10: macro `DEFUN_DLD' used with only 6 args
: 
: This could be extremely simple - I don't know any c++ 
: - so any suggestions appreciated.  However it seems to me
: that DEFUN_DLD defined in defun-dld.h needs 7 arguments
: (SFname is missing).

The documentation is wrong.  The example should begin with

  DEFUN_DLD ("hello", Fhello, Shello, FShello, -1, -1,
    "hello (...)\n

In the next release, this will be simplified to

  DEFUN_DLD (hello, args, nargout,
    "hello (...)"
  {
     ...
  }

: Could this be anything to do with whether octave is configured with
: DLD support?

No, the use of the DEFUN_DLD macro is the same in either case.

: Also, will be upgrading to ELF soon.  Since dld doesn't work
: with ELF, will dynamic loading still work with octave?

No.

The next release of Octave will support dynamic linking on systems
that support either dlopen/dlclose (Solaris, Irix, Linux, Digital
Unix, AIX, etc.) or shl_load/shl_findsym (HP/UX only?).  Support for
dld has been dropped.

jwe


reply via email to

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