[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Dynamic function not loading in 2.1.40
From: |
Albert F. Niessner |
Subject: |
Dynamic function not loading in 2.1.40 |
Date: |
16 Dec 2002 17:02:22 -0500 |
I have the following simple test program:
#include <octave/oct.h>
DEFUN_DLD (testDynamicFunc, args, , "Test Dynamic Functions.")
{
int i = 0;
return octave_value(&i);
}
I then do the following to make it:
address@hidden Octave]$ which mkoctfile
/usr/local/Octave/bin/mkoctfile
address@hidden Octave]$ ls -l /usr/local/Octave/bin/mkoctfile
lrwxrwxr-x 1 niessner optint 16 Dec 16 13:45
/usr/local/Octave/bin/mkoctfile -> mkoctfile-2.1.40*
address@hidden Octave]$ mkoctfile -v testDynamicFunc.cc
g++ -c -fPIC -I/usr/local/Octave/include/octave-2.1.40
-I/usr/local/Octave/include/octave-2.1.40/octave
-I/usr/local/Octave/include -mieee-fp -g -O2 -Wall testDynamicFunc.cc -o
testDynamicFunc.o
g++ -shared -o testDynamicFunc.oct testDynamicFunc.o
All seems well, but in octave (GNU Octave, version 2.1.40
(i686-pc-linux-gnu)) I always get this message:
octave:1> testDynamicFunc
error: /home/niessner/Octave/testDynamicFunc.oct is not a valid shared
library
Any guesses as to why? Last comment, I am just following the directions
in the 2.1.40 doc/interpreter/octave.ps file.
Al Niessner
-------------------------------------------------------------
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
-------------------------------------------------------------
- Dynamic function not loading in 2.1.40,
Albert F. Niessner <=