> On 7 Nov 2017, at 16:06, Himaja Kodati <[hidden email]> wrote:
> I intend to use existing Octave functions (written by me) from a C environment.
> From what I have understood, .oct and .mex files are used to do the reverse. i.e., use C code in Octave environment.
> Kindly help me with the solution
Octave works well with C++ I'm not sure how to deal with C.
If C++ is OK for you, you have two options.
If you just need to use functons built into liboctave you can
create a standalone executable linking to liboctave as shown here:
> On 7 Nov 2017, at 19:12, Himaja Kodati <[hidden email]> wrote:
> Thank you for the prompt response.
> I get the following error while trying to run the example embedded.c in the 2nd link you provided.
> error: octave/interpreter.h: No such file or directory
> I have found a documentation for octave/interpreter.h at
> http://octave.org/doxygen/4.0/d3/d7e/octave-interpreter_8h_source.html >
> I'm not sure where to place this file. Kindly let me know how I can proceed.
> I am running octave 4.0.0 on Linux
> My octave binary resides at /usr/local/bin/octave
Please keep the mailing list in CC when replying, do not send private email.
You do not need to place that file anywhere it is already part of the Octave installation.