help-octave
[Top][All Lists]
Advanced

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

Re: Compile an Octave script to c or c++/ Embed Octave functions in a c


From: Tatsuro MATSUOKA
Subject: Re: Compile an Octave script to c or c++/ Embed Octave functions in a c (or c++) code
Date: Mon, 25 Aug 2014 22:03:05 +0900 (JST)




----- Original Message -----
> From: JokerOne 
> To: address@hidden
> Cc: 
> Date: 2014/8/25, Mon 21:46
> Subject: Compile an Octave script to c or c++/ Embed Octave functions in a c 
> (or c++) code
> 
> Hi community,
> 
> despite the fact, that similiar questions were posed in the past in this
> list, I would like to 
> ask these questions once more, as I find the existing answers and posts
> quite confusing, sorry. 
> So maybe, you could help me to find out about the current situation:
> 
> 1.) Are there any ways to compile an octave.m file to - say- c or c++ ? (I
> guess there are none, but maybe I am wrong?).

There were such attempts but no projects had been accomplished.


> 2.) Are there ways to call Octave functions from within a c (or c++) code? 
> A brief answer with some links to more information are very appreciated. Thx
> 
See the octave manual,

http://www.gnu.org/software/octave/doc/interpreter/Standalone-Programs.html#Standalone-Programs

From the paragrph:
"Note that the application standalone will be dynamically linked against the 
Octave libraries and any Octave support libraries. The above allows the Octave 
math libraries to be used by an application. It does not, however, allow the 
script files, oct-files, or builtin functions of Octave to be used by the 
application. To do that the Octave interpreter needs to be initialized first. 
An example of how to do this can then be seen in the code"

 (example code)
Tatsuro
>



reply via email to

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