[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Using octave_struct in C++
From: |
Soren Hauberg |
Subject: |
Using octave_struct in C++ |
Date: |
Tue, 19 Oct 2004 16:16:56 +0200 |
User-agent: |
Mozilla Thunderbird 0.8 (X11/20041012) |
Hi
I would lke to work with octave_struct's in C++, but I can't really
figure out how :-(
The following simple program seg faults
#include <oct.h>
#include <octave/ov-struct.h>
DEFUN_DLD(struct_test, args, nargout, "") {
octave_value_list out_list = octave_value_list();
octave_struct my_struct = octave_struct();
out_list(0) = octave_value(my_struct);
return out_list;
}
Any ideas why? I'm using 2.1.59 on Ubuntu linux.
Thanks,
Soren
-------------------------------------------------------------
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
-------------------------------------------------------------
- Using octave_struct in C++,
Soren Hauberg <=