[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 (http://gmane.org/) |
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 oregonator.cc into an oct file oregonator.oct,
but when I enter Octave and try to invoke it, I get:
<blockquote>
octave:1> oregonator([1 2 3], 0)
error: /home/gpaparella/Desktop/m_files/octave/oregonator.oct: undefined symbol:
_ZN5ArrayIdED0Ev
error: `oregonator' undefined near line 1 column 1
</blockquote>
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 libcruft.so.2.1.73 liboctinterp.so
libcruft.so liboctinterp.a liboctinterp.so.2.1.73
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
script?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Trouble getting dynamically linked functions working - Octave 2.1.73,
Gabriel Paparella <=