[Top][All Lists]

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

C++ dynamically linked functions

From: John W. Eaton
Subject: C++ dynamically linked functions
Date: Wed, 10 Apr 2002 13:23:03 -0500

On 10-Apr-2002, Kiran Kumar Sagi <address@hidden> wrote:

|  I am trying to call a C function from the
|  to get started with using C libraries in octave.
|  first i tried,
|   mkoctfile myfunc.c
|   copied the oregonator.oct file into octave bin directory.
|   on using it, it breaks saying myfunc: reference symbol not found.
| [...]
| #include <oct.h>
| int myfunc();

Try declaring the C function as

  extern "C" int myfunc()


Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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