Re: Include file errors

New Message Reply Date view Thread view Subject view Author view

Wade Olsen (wade++at++surf.shoreline-studios.com)
Thu, 12 Feb 1998 14:45:46 -0800


Roy Ruddle wrote:
> A slightly different problem this time. I get the following error
> compiling some keyboard input code using IrisGL
>
> "/usr/include/X11/X.h", line 86: error(1229): invalid redeclaration of type
> name "Cursor" (declared at line 990 of "/usr/include/gl/gl.h")
> typedef XID Cursor;
>
> I recollect that someone else had this problem a while back and the
> solution was simple (change the order of include files or something?). Can
> anyone remember it?
>

This is correct. X and Iris GL both have a define for Cursor. Looking at
the GL header files reveals:

/* obsolete typedefs */
#ifndef X_H
typedef unsigned short Cursor[16]; /* a C16X1 cursor */
#endif

Which indicates you should include GL stuff last.

-- 
-----------------------------
Wade Olsen, Shoreline Studios
e-mail:	wade++at++shoreline-studios.com
phone:	650-969-7896
fax:	650-969-7864
www:	http://www.shoreline-studios.com
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:47 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.