[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dynamic function not loading in 2.1.40
From: |
Albert F. Niessner |
Subject: |
Re: Dynamic function not loading in 2.1.40 |
Date: |
17 Dec 2002 13:00:09 -0500 |
Works great once I included those two configuration parameters. Thanks.
Al
On Mon, 2002-12-16 at 18:40, Dmitri A. Sergatskov wrote:
> Did you build octave with --enable-dl --enable-shared?
> It worked for me:
>
> address@hidden octave]$ cat testDynamicFunc.cc
> #include <octave/oct.h>
>
> DEFUN_DLD (testDynamicFunc, args, , "Test Dynamic Functions.")
> {
> double d = 0.0;
> return octave_value(d);
> }
>
> address@hidden octave]$ mkoctfile -v testDynamicFunc.cc
> g++ -c -fPIC -I/usr/local/include/octave-2.1.40
> -I/usr/local/include/octave-2.1.40/octave -I/usr/local/include -mieee-fp -O3
> -mcpu=i686 -march=i686 -pipe testDynamicFunc.cc -o testDynamicFunc.o
> cc1plus: warning: changing search order for system directory
> "/usr/local/include"
> cc1plus: warning: as it has already been specified as a non-system directory
> g++ -shared -o testDynamicFunc.oct testDynamicFunc.o
> address@hidden octave]$ octave
> GNU Octave, version 2.1.40 (i686-pc-linux-gnu).
> Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 John W. Eaton.
> This is free software; see the source code for copying conditions.
> There is ABSOLUTELY NO WARRANTY; not even for MERCHANTIBILITY or
> FITNESS FOR A PARTICULAR PURPOSE. For details, type `warranty'.
>
> Please contribute if you find this software useful.
> For more information, visit http://www.octave.org/help-wanted.html
>
> Report bugs to <address@hidden>.
>
> octave:1> testDynamicFunc
> ans = 0
>
>
> Regards,
>
> Dmitri.
>
>
>
>
> -------------------------------------------------------------
> 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
> -------------------------------------------------------------
>
-------------------------------------------------------------
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
-------------------------------------------------------------