[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 oregonator.cc
| to get started with using C libraries in octave.
|
| first i tried,
| mkoctfile oregonator.cc 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()
jwe
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------