help-octave
[Top][All Lists]
Advanced

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

Re: C++ functions


From: Paul Kienzle
Subject: Re: C++ functions
Date: Mon, 02 Jun 2003 21:37:27 -0400
User-agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.3) Gecko/20030312

Robert Widura wrote:

Hello, I have some problems with the implementation of multiple C++ functions, when I use the command "mkoctfile". To understand how it works, I have written the following 3 simple programs:
You are trying to call one octave function from another
octave function.  To do this, you have to marshall the
arguments and return values through an octave_value_list

<digression>
I would refer you to the page I put up on the octave wiki
at gnufans.net/octave.pl, but it isn't responding.  We
need to move it to a more reliable machine.  Anyone
got something available which they don't mind having
a small wiki on?  Preferably one that can pretend it
is wiki.octave.org.  Can we do this on source forge?
</digression>

Search the octave mailing list at http://www.octave.org
for an example.

The alternative approach used in a number of  files
in octave/src/DLD_FUNCTIONS is to define an
internal function f, and two DLD_FUNCTIONS
funkprojekt_oct and f which call the internal f and
compile them into the same oct-file.  To access f from
octave, you need to symlink f.oct to funkproject_oct.oct,
or vice versa depending on what you call the oct-file.

<digression>
I would put this info in the wiki, too, if it were up.
</digression>

Paul Kienzle
address@hidden




-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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