[Top][All Lists]

[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)

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.


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]