help-octave
[Top][All Lists]
Advanced

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

Re: Info on calling C from octave


From: James Haefner
Subject: Re: Info on calling C from octave
Date: Thu, 20 Sep 2007 08:35:24 -0600
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060717 Debian/1.7.13-0.2ubuntu1

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

Thanks John, I got it to work nicely.

Jim H.


reply via email to

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