octave-maintainers
[Top][All Lists]
Advanced

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

Re: "oct files" within the embedder


From: Paul Kienzle
Subject: Re: "oct files" within the embedder
Date: Fri, 17 Feb 2006 18:23:32 -0500

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ébastien Loisel




reply via email to

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