bugGNU Octave - Bugs: bug #41279, Issue with "matrix.h" in...

 
 

bug #41279: Issue with "matrix.h" in mex-source files

Submitter:  None
Submitted:  Sun 19 Jan 2014 02:31:49 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Wont Fix Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.8.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 19 Jan 2014 03:05:28 PM UTC, comment #2: 

Matrix.h is not a file "internal" to Octave. It's also used to compile people's oct files, so removing it would break existing user oct files.

The fix is simple: remove the include. It will also compile on Matlab without it.

Jordi GutiƩrrez Hermoso <jordigh>
Group Member
Sun 19 Jan 2014 02:34:47 PM UTC, comment #1: 

As a work-around, I created an empty matrix.h in the same directory, so that will get used first. Seems to compile fine, but still need to test.

Anonymous
Sun 19 Jan 2014 02:31:49 PM UTC, original submission:  

Dear all,
I can't compile the mex files for the Wavelab package from http://statweb.stanford.edu/~wavelab/Wavelab_850/download.html.

The problem is the following:
Some files start with:

#include "mex.h"
#include "matrix.h"  //<---this causes the problem


and the inclusion of matrix.h leads to an compile error.
I read in the Octave documentation, that there is some difference on purpose between Matlab and Octave regarding the Matrix.h file, but can't the file that internally belongs to Octave be renamed, so that mex-files can stay source-code-compatible with Matlab?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jordigh (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-01-19 jordigh StatusNone Wont Fix
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code