[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: using STL in .oct files
From: |
Nimrod Mesika |
Subject: |
Re: using STL in .oct files |
Date: |
Tue, 22 Aug 2000 18:58:02 +0300 |
User-agent: |
Mutt/1.2i |
On Tue, Aug 22, 2000 at 01:29:01AM -0500, John W. Eaton wrote:
> My guess is that constructors for global objects are not being called
> when dlopen loads the .oct file on your system. Doing that is really
> beyond the scope of Octave. I think your compiler/linker is supposed
> to handle it. As far as I know, it works correctly on Linux systems.
> For example, the following code worked for me:
>
> #include <octave/oct.h>
>
> string tryme_string = "this is a string, eh?";
>
> DEFUN_DLD (tryme , , ,
> "tryme")
> {
> return octave_value (tryme_string);
> }
>
Indeed. When I run this example octave panics and dumps core.
Thanks.
--
Nimrod.
http://www.geocities.com/rodd_27
-----------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.che.wisc.edu/octave/octave.html
How to fund new projects: http://www.che.wisc.edu/octave/funding.html
Subscription information: http://www.che.wisc.edu/octave/archive.html
-----------------------------------------------------------------------