I am compiling a third-party code on my Windows machine using Cygwin. Essentially this is a virtual unix machine running on my Windows desktop.
During the compile I receive the following errors:
/usr/include/X11/extensions/shapeproto.h:51:2: error: expected specifier-qualifier-list before ‘CARD8’
/usr/include/X11/extensions/shapeproto.h:58:2: error: expected specifier-qualifier-list before ‘BYTE’
These errors refer to lines in a header file where a data structure is defined. The offending data structure is:
Code:
typedef struct _ShapeQueryVersion {
CARD8 reqType; /* always ShapeReqCode */
CARD8 shapeReqType; /* always X_ShapeQueryVersion */
CARD16 length B16;
} xShapeQueryVersionReq;
Note that regType makes the compiler (gcc) queasy, but the following line does not. This declaration is akin to the other error on line 58 for another data structure definition:
Code:
typedef struct {
BYTE type; /* X_Reply */
CARD8 unused; /* not used */
CARD16 sequenceNumber B16;
CARD32 length B32;
CARD16 majorVersion B16; /* major version of SHAPE protocol */
CARD16 minorVersion B16; /* minor version of SHAPE protocol */
CARD32 pad0 B32;
CARD32 pad1 B32;
CARD32 pad2 B32;
CARD32 pad3 B32;
CARD32 pad4 B32;
} xShapeQueryVersionReply;
I do not know what a CARD8 means as a variable type, so I am confused as to what the compiler is complaining about. I am also a FORTRAN programmer who can muddle through C code, but does not regularly code in it.
Thanks for any help you can give.