[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #40429] struct array in MEX file
From: |
Guillaume |
Subject: |
[Octave-bug-tracker] [bug #40429] struct array in MEX file |
Date: |
Wed, 30 Oct 2013 19:08:02 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 |
URL:
<http://savannah.gnu.org/bugs/?40429>
Summary: struct array in MEX file
Project: GNU Octave
Submitted by: gyom
Submitted on: Wed 30 Oct 2013 07:08:01 PM GMT
Category: Libraries
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Other
Status: None
Assigned to: None
Originator Name: Guillaume
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: GNU/Linux
_______________________________________________________
Details:
I have a MEX file that works fine on MATLAB but not with Octave. I managed to
minimise the code to illustrate the problem, see teststruct.c attached.
After compilation, with MATLAB:
>> teststruct(struct('t',5))
ans =
t: 10
while with Octave:
octave> teststruct(struct('t',5))
ans =
11508528x0 struct array containing the fields:
t
If any of the commented line is used instead of the dynamic allocation then it
runs fine.
My apologies if the problem is with my code and not Octave but I am puzzled
because of the difference of behaviour between Octave and MATLAB.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 30 Oct 2013 07:08:01 PM GMT Name: teststruct.c Size: 484B By:
gyom
<http://savannah.gnu.org/bugs/download.php?file_id=29510>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?40429>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #40429] struct array in MEX file,
Guillaume <=
- [Octave-bug-tracker] [bug #40429] struct array in MEX file, John W. Eaton, 2013/10/30
- [Octave-bug-tracker] [bug #40429] struct array in MEX file, Guillaume, 2013/10/31
- [Octave-bug-tracker] [bug #40429] struct array in MEX file, John W. Eaton, 2013/10/31
- [Octave-bug-tracker] [bug #40429] struct array in MEX file, Guillaume, 2013/10/31
- [Octave-bug-tracker] [bug #40429] struct array in MEX file, John W. Eaton, 2013/10/31
- [Octave-bug-tracker] [bug #40429] struct array in MEX file, Guillaume, 2013/10/31
- [Octave-bug-tracker] [bug #40429] struct array in MEX file, John W. Eaton, 2013/10/31
- [Octave-bug-tracker] [bug #40429] struct array in MEX file, Guillaume, 2013/10/31
- [Octave-bug-tracker] [bug #40429] struct array in MEX file, John W. Eaton, 2013/10/31