bugGNU Octave - Bugs: bug #32279, Definition of 'Complex' causes...

 
 

bug #32279: Definition of 'Complex' causes build failure with fltk1.3

Submitter:  Kai Habel <kahacjde>
Submitted:  Fri 28 Jan 2011 04:28:51 PM UTC
   
 
Category:  Libraries Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Build Failure
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 29 Jan 2011 07:04:15 PM UTC, comment #2: 

Yes this fixes the problem for me.

Thanks,
Kai

Kai Habel <kahacjde>
Group Member
Sat 29 Jan 2011 05:59:10 PM UTC, comment #1: 

I checked in the following changeset:

http://hg.savannah.gnu.org/hgweb/octave/rev/be90f9e4548e

Does this fix the problem for you?

John W. Eaton <jwe>
Group administrator
Fri 28 Jan 2011 04:28:51 PM UTC, original submission:  

This has been reported some time ago:

http://octave.1599824.n4.nabble.com/octave-build-issue-error-in-fltk-backend-td2309879.html

I don't know how one handles such cases. Should we undefine 'Complex' before we define it in oct-cmplx.h?

Kai

>The problems seems to be that fltk1.3 includes X11/X.h. There >is the
>following definition
>
>/* Polygon shapes */
>
>#define Complex                        0       /* paths may >intersect */
>#define Nonconvex               1       /* no paths intersect, >but not
>convex */
>#define Convex                  2       /* wholly convex */
>
>this collides with liboctave/oct-cmplx.h:
>
>#include <complex>
>
>typedef std::complex<double> Complex;
>typedef std::complex<float> FloatComplex;


Kai Habel <kahacjde>
Group Member

 

(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 jwe (Posted a comment)
  • -email is unavailable- added by kahacjde (Submitted the item)
  •  

    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
    2011-01-29 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code