[Top][All Lists]

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

Re: Need help on DLFs (dynamically linked functions)

From: Joao Cardoso
Subject: Re: Need help on DLFs (dynamically linked functions)
Date: Thu, 18 Jun 1998 18:54:34 +0100

Wonkoo Kim wrote:
> I'm using Octave 2.0.13 for OS/2.
> First of all, thanks for answers to my previous query on DLF.
> Though I could successfully run a small examples and I've spend
> some time on DLFs, but I'm not yet familiar enough with DLFs to
> adapt my C codes to Octave.  So, I'd like to see some more
> example codes.
> Suppose I want an Octave function:
>  [mat_x, vec_y, string_z] = func (mat_a, vec_b, int_c, string_d)
> and suppose I have my own C code that does the same job as
> func(), with variables double a[][], b[], int c, char *d, etc.
> However, my problem is that I don't know how to connect Octave
> function arguments (or return values) to the variables of my code.
> Would you please show me short examples?  (Or, point me a site.)

Matwrap was created for this purpose, making foreign functions
available to octave. You only need to provide the function
prototype (and the function). You can find it at

> I write C codes, but not C++ codes.  So, if I want to keep the most
> part of my C functions untouched, how do I wrap C codes for Octave
> DLFs?  (However, I'm willing to modify my C codes for C++ Octave
> DLFs.)
> Thanks.
> //--------------------------------------------------------------------
> // Wonkoo Kim (address@hidden)

Joao Cardoso                |   e-mail: address@hidden
INESC, R. Jose Falcao 110   |   tel:    + 351 2 2094322
4050 Porto, Portugal        |   fax:    + 351 2 2008487

reply via email to

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