problems with "aoutoload" in 3.1.55

John W. Eaton jwe at octave.org
Tue May 26 12:41:31 CDT 2009


On 25-May-2009, Jaroslav Hajek wrote:

| In that case, you can create a separate source with the core
| functions, and then just wrap them in DLDs, one per .oct file (linked
| with the "common" file).
| mkoctfile -c common.cc
| mkoctfile func1.cc common.o
| mkoctfile func2.cc common.o
| etc.

I think this will work OK if the functions don't share any global
data.  If they do, then you will probably need to use a shared library
for the common parts, or use some other method to ensure that there is
only one instance of the shared global data.

jwe


More information about the Bug-octave mailing list