https://bugzilla.novell.com/show_bug.cgi?id=480571
Summary: Octave can't compile mex file
Classification: openSUSE
Product: openSUSE 11.1
Version: Final
Platform: i586
OS/Version: openSUSE 11.1
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Other
AssignedTo: bnc-team-screening@forge.provo.novell.com
ReportedBy: ivan.sutoris@gmail.com
QAContact: qa@suse.de
Found By: ---
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6)
Gecko/2009012700 SUSE/3.0.6-0.1.2 Firefox/3.0.6
I am using Octave 3.0.3-4.1 from Contrib repository. When I use it to compile a
mex file, I get following error:
In file included from /usr/include/octave-3.0.3/octave/mexproto.h:61,
from /usr/include/octave-3.0.3/octave/mex.h:77,
from mextest.c:1:
/usr/include/octave-3.0.3/octave/mxarray.h:49:19: error: cstring: No
such file or directory
This seems to be caused by including cstring header (which is valid for
C++ only) when Octave compiles mex file with gcc. This specific include
statement (at line 49 of mxarray.h) comes from patch to mxarray.h.in applied
during packaging, so I believe this bug is distro-specific. After bit
searching, I've found that similar problem occured in Fedora [1].
When I change line 49 of mxarray.h from
#include <cstring>
to
#include