On 19-Sep-2007, James Haefner wrote:
| Hi, I'm new to calling C (not C++) functions from octave and need some
| basic help:
|
| (1) Is there a good tutorial that describes the uses/differences between
| mex and mkoctfile and the general strategy for calling C functions in
| external libraries?
Write a C++ wrapper the way you normally do with DEFUN_DLD and call
you C functions from it.
| (2) In the mean time, can anyone explain these results from octave_2.9.6
| on a linux (ubuntu 6.10) machine:
|
...
All files that use DEFUN_DLD must be compiled by a C++ compiler. But
from there, you can call code written in C++, C, Fortran, or any other
language that can be called from C++.
jwe