[Top][All Lists]

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

Trouble getting dynamically linked functions working - Octave 2.1.73

From: Gabriel Paparella
Subject: Trouble getting dynamically linked functions working - Octave 2.1.73
Date: Fri, 5 Jan 2007 16:48:57 +0000 (UTC)
User-agent: Loom/3.14 (

I have installed Octave 2.1.73 and run the configure script with the
--enable-shared option.  Then 'make install' and 'make' according to the
directions.  I'm using Red Hat Linux 2.6.9-42.0.3.ELsmp

I can compile the example code into an oct file oregonator.oct,
but when I enter Octave and try to invoke it, I get:
octave:1> oregonator([1 2 3], 0)
error: /home/gpaparella/Desktop/m_files/octave/oregonator.oct: undefined symbol:
error: `oregonator' undefined near line 1 column 1

I demangle the symbol _ZN5ArrayIdED0Ev with <b><i>echo "_ZN5ArrayIdED0Ev" |
c++filt</i></b> and find that it is <b><i>Array<double>::~Array()</i></b>.  This
is defined in my include directory /usr/local/include/octave-2.1.73/octave/ in
the file Array.h, and the configure script's variable <b>octincludedir</b> has
my include directory as its value.

Also, I have the value /usr/local/lib/octave-2.1.73 for the variable
<b>octlibdir</b>.  My lib directory contains the files:
   libcruft.a  liboctinterp.a

So I don't understand why it's not all linking up when I compile with mkoctfile.
 Should I have chosen some additional options when invoking the configure 

reply via email to

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