[Top][All Lists]

[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
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
g++ -c -fPIC -I/usr/local/Octave/include/octave-2.1.40
-I/usr/local/Octave/include -mieee-fp -g -O2 -Wall -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

Any guesses as to why? Last comment, I am just following the directions
in the 2.1.40 doc/interpreter/ file.

Al Niessner

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]