From maintainers-request at octave dot org Fri Feb 17 19:06:12 2006 Subject: Re: "oct files" within the embedder From: "Sebastien Loisel" To: "Paul Kienzle" Cc: "David Bateman" , "octave maintainers mailing list" Date: Sat, 18 Feb 2006 02:04:32 +0100 ------=_Part_1181_26353919.1140224672911 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline OK, thanks. I fixed my help system problems. I'm releasing a new version as I write this. Sebastien Loisel On 2/18/06, Paul Kienzle wrote: > > Look at listen.cc. I register the send and senderror functions: > > #if USE_DEFUN_INTERNAL > install_builtin_function (Fsend, "send", "builtin send doc", false); > install_builtin_function (Fsenderror, > "senderror", "builtin senderror doc", > false); > #endif > > - Paul > > On Feb 17, 2006, at 8:19 AM, Sebastien Loisel wrote: > > > David, > > > > If I mkoctfile foo.cpp -o foo.oct then I get a function in octave, > > called foo, that I can call. However, if instead I g++ foo.cpp -o > > foo.o and then statically link foo.o into my embedder, the function > > isn't visible in octave. Is there a way for my embedder to add it to > > the namespace, or am I better off just making oct files? > > > > Cheers, > > > > S=E9bastien Loisel > > > ------=_Part_1181_26353919.1140224672911 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline OK, thanks.

I fixed my help system problems. I'm releasing a new version as I write thi= s.

Sebastien Loisel

On 2/18/06, Paul Kienzle <pkienzle at users dot sourceforge dot net> wrote: Look at listen.cc.  I register the send and senderror functions:<= br>
#if USE_DEFUN_INTERNAL
   install_builtin_function (Fse= nd, "send", "builtin send doc", false);
  = install_builtin_function (Fsenderror,
            = ;            &n= bsp;    "senderror", "builtin senderror doc",
false);
#en= dif

- Paul

On Feb 17, 2006, at 8:19 AM, Sebastien Loisel wrot= e:

> David,
>
> If I mkoctfile foo.cpp -o foo.oct then I get a function in octave,
> called foo, that I can call. Howe= ver, if instead I g++ foo.cpp -o
> foo.o and then statically link foo= .o into my embedder, the function
> isn't visible in octave. Is there= a way for my embedder to add it to
> the namespace, or am I better off just making oct files?
>> Cheers,
>
> S=E9bastien Loisel


<= /div>
------=_Part_1181_26353919.1140224672911--